diff --git a/package.json b/package.json index 220a601977..1f9c1f2f08 100644 --- a/package.json +++ b/package.json @@ -34,16 +34,16 @@ "@mui/lab": "^5.0.0-alpha.72", "@mui/material": "^5.5.0", "@pushprotocol/ledgerlive": "latest", - "@pushprotocol/restapi": "1.4.32", - "@pushprotocol/socket": "latest", - "@pushprotocol/uiweb": "0.0.1-alpha.28", + "@pushprotocol/restapi": "1.4.37", + "@pushprotocol/socket": "0.5.3", + "@pushprotocol/uiweb": "1.1.17", "@reduxjs/toolkit": "^1.7.1", "@testing-library/dom": "^9.0.1", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "@uniswap/widgets": "^2.47.3", - "@unstoppabledomains/resolution": "^8.5.0", + "@unstoppabledomains/resolution": "9.2.2", "@web3-onboard/coinbase": "^2.2.5", "@web3-onboard/core": "^2.20.4", "@web3-onboard/injected-wallets": "^2.9.0", diff --git a/src/components/FaucetInfo.tsx b/src/components/FaucetInfo.tsx index 9964974631..6e88e8a197 100644 --- a/src/components/FaucetInfo.tsx +++ b/src/components/FaucetInfo.tsx @@ -75,11 +75,11 @@ const FaucetInfo = ({ onMintPushToken, noOfPushTokensToCheck, containerProps }: ) : ( <ItemBody> <AnchorLink - href="https://chaindrop.org/?chainid=5&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" + href="https://chaindrop.org/?chainid=11155111&token=0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" target="_blank" > <NumberIcon>1</NumberIcon> - <PoolShare>Goerli ETH Faucet</PoolShare> + <PoolShare>Sepolia ETH Faucet</PoolShare> </AnchorLink> <Minter onClick={async () => { diff --git a/src/components/Faucets.js b/src/components/Faucets.js index dee6333407..79bc93915e 100644 --- a/src/components/Faucets.js +++ b/src/components/Faucets.js @@ -23,11 +23,11 @@ const Faucets = () => { const dropdownValues = [ { - id: "5", - value: "Goerli", - title: "Goerli Faucet", + id: "11155111", + value: "Sepolia", + title: "Sepolia Faucet", function: () => {}, - link: "https://goerlifaucet.com/", + link: "https://sepoliafaucet.com/", }, { id: "80001", diff --git a/src/components/YieldFarmChainError.tsx b/src/components/YieldFarmChainError.tsx index 7e86a9ce6e..453b95d8e4 100644 --- a/src/components/YieldFarmChainError.tsx +++ b/src/components/YieldFarmChainError.tsx @@ -14,7 +14,7 @@ const YieldFarmChainError = () => { const chainIdToPass = appConfig.allowedNetworks[0]; - if (currentChainId !== 1 && currentChainId !== 5) { + if (currentChainId !== 1 && currentChainId !== 11155111) { console.log("Current Chain ID ", currentChainId); console.log("Chain Id to pass", chainIdToPass); switchChain(appConfig.coreContractChain); diff --git a/src/components/chat/w2wChat/groupChat/groupInfo/groupInfoModalContent.tsx b/src/components/chat/w2wChat/groupChat/groupInfo/groupInfoModalContent.tsx index f6cf9f3aa5..a024152689 100644 --- a/src/components/chat/w2wChat/groupChat/groupInfo/groupInfoModalContent.tsx +++ b/src/components/chat/w2wChat/groupChat/groupInfo/groupInfoModalContent.tsx @@ -1,4 +1,4 @@ -import React, { useContext, useEffect } from 'react'; +import React, { useContext, useEffect, useState } from 'react'; import { ethers } from 'ethers'; // External Packages @@ -37,10 +37,12 @@ import useToast from 'hooks/useToast'; import { MdCheckCircle, MdError } from 'react-icons/md'; import { AddWalletContent } from '../createGroup/AddWalletContent'; import GroupModalHeader from '../createGroup/GroupModalHeader'; +import { copyToClipboard, shortenText } from 'helpers/UtilityHelper'; export const GroupInfoModalContent = ({ onClose }: ModalInnerComponentType) => { const { currentChat, setChat, inbox, receivedIntents }: AppContext = useContext<AppContext>(Context); const { connectedUser } = useContext(ChatUserContext); + const [copyText, setCopyText] = useState<string>(''); const { account } = useAccount(); const groupInfoToast = useToast(); const [selectedMemeberAddress, setSelectedMemeberAddress] = React.useState<string | null>(null); @@ -50,7 +52,9 @@ export const GroupInfoModalContent = ({ onClose }: ModalInnerComponentType) => { const [memberList, setMemberList] = React.useState<any>([]); const [isLoading, setIsLoading] = React.useState<boolean>(false); const groupCreator = currentChat?.groupInformation?.groupCreator; - const membersExceptGroupCreator = currentChat?.groupInformation?.members.filter((x) => x.wallet?.toLowerCase() !== groupCreator?.toLowerCase()); + const membersExceptGroupCreator = currentChat?.groupInformation?.members.filter( + (x) => x.wallet?.toLowerCase() !== groupCreator?.toLowerCase() + ); const groupMembers = [...membersExceptGroupCreator, ...currentChat?.groupInformation?.pendingMembers]; const isAccountOwnerAdmin = currentChat?.groupInformation?.members?.some( @@ -388,7 +392,57 @@ export const GroupInfoModalContent = ({ onClose }: ModalInnerComponentType) => { </SpanV2> </ItemVV2> </InfoContainer> - + <DescriptionContainer + alignItems="flex-start" + margin="0px 0px 18px 0px" + > + <SpanV2 + fontSize="18px" + fontWeight={500} + margin="0px 0px 5px 0px" + color={theme.modalProfileTextColor} + > + Chat ID + </SpanV2> + <ItemHV2 + + alignSelf="start" + onClick={() => { + copyToClipboard(currentChat?.groupInformation?.chatId); + setCopyText('copied'); + }} + onMouseEnter={() => { + setCopyText('click to copy'); + }} + onMouseLeave={() => { + setCopyText(''); + }} + > + <SpanV2 + + textAlign="start" + fontSize="18px" + fontWeight="400" + style={{ color: `${theme.modalDescriptionTextColor}` }} + > + {shortenText(currentChat?.groupInformation?.chatId,8,8)} + </SpanV2> + {!!copyText && ( + <SpanV2 + cursor="pointer" + position="relative" + padding="2px 10px" + style={{ color: `${theme.modalDescriptionTextColor}` }} + fontSize="16px" + fontWeight="400" + // background={theme.backgroundColor?.modalHoverBackground} + borderRadius="16px" + > + {copyText} + </SpanV2> + )} + </ItemHV2> + </DescriptionContainer> <DescriptionContainer alignItems="flex-start" margin="0px 0px 18px 0px" @@ -568,7 +622,7 @@ const AddWalletContainer = styled(ItemHV2)` padding: 15px 24px; margin-bottom: 15px; cursor: pointer; - @media(max-width:480px){ + @media (max-width: 480px) { min-width: 300px; max-width: 300px; } diff --git a/src/components/reusables/SharedStylingV2.js b/src/components/reusables/SharedStylingV2.js index 6e0dfb02e7..c0900c2d92 100644 --- a/src/components/reusables/SharedStylingV2.js +++ b/src/components/reusables/SharedStylingV2.js @@ -163,6 +163,7 @@ export const ButtonV2 = styled.button` export const SpanV2 = styled.span` align-self: ${(props) => props.alignSelf || 'auto'}; background: ${(props) => props.background || 'transparent'}; + cursor: ${(props) => props.cursor || 'default'}; border-radius: ${(props) => props.borderRadius || 'initial'}; bottom: ${(props) => props.bottom || 'auto'}; color: ${(props) => props.color || 'inherit'}; diff --git a/src/config/abis/epnscore.json b/src/config/abis/epnscore.json index 93997d7af5..b8e30f6ec3 100644 --- a/src/config/abis/epnscore.json +++ b/src/config/abis/epnscore.json @@ -1,25 +1,35 @@ [ + { + "inputs": [{ "internalType": "address", "name": "target", "type": "address" }], + "name": "AddressEmptyCode", + "type": "error" + }, + { + "inputs": [{ "internalType": "address", "name": "account", "type": "address" }], + "name": "AddressInsufficientBalance", + "type": "error" + }, + { "inputs": [], "name": "EnforcedPause", "type": "error" }, + { "inputs": [], "name": "ExpectedPause", "type": "error" }, + { "inputs": [], "name": "FailedInnerCall", "type": "error" }, + { "inputs": [], "name": "InvalidInitialization", "type": "error" }, + { "inputs": [], "name": "NotInitializing", "type": "error" }, + { + "inputs": [{ "internalType": "address", "name": "token", "type": "address" }], + "name": "SafeERC20FailedOperation", + "type": "error" + }, { "anonymous": false, "inputs": [ + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, { "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "enum EPNSCoreStorageV1_5.ChannelType", + "internalType": "enum PushCoreStorageV1_5.ChannelType", "name": "channelType", "type": "uint8" }, - { - "indexed": false, - "internalType": "bytes", - "name": "identity", - "type": "bytes" - } + { "indexed": false, "internalType": "bytes", "name": "identity", "type": "bytes" } ], "name": "AddChannel", "type": "event" @@ -27,62 +37,25 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "_subGraphData", - "type": "bytes" - } + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": false, "internalType": "bytes", "name": "_subGraphData", "type": "bytes" } ], "name": "AddSubGraph", "type": "event" }, { "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - } - ], + "inputs": [{ "indexed": true, "internalType": "address", "name": "channel", "type": "address" }], "name": "ChannelBlocked", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "_channel", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "totalNotifOptions", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "string", - "name": "_notifSettings", - "type": "string" - }, - { - "indexed": false, - "internalType": "string", - "name": "_notifDescription", - "type": "string" - } + { "indexed": false, "internalType": "address", "name": "_channel", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "totalNotifOptions", "type": "uint256" }, + { "indexed": false, "internalType": "string", "name": "_notifSettings", "type": "string" }, + { "indexed": false, "internalType": "string", "name": "_notifDescription", "type": "string" } ], "name": "ChannelNotifcationSettingsAdded", "type": "event" @@ -90,18 +63,8 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" - } + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "ChannelOwnershipTransfer", "type": "event" @@ -109,18 +72,8 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "revoker", - "type": "address" - } + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "revoker", "type": "address" } ], "name": "ChannelVerificationRevoked", "type": "event" @@ -128,18 +81,8 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "verifier", - "type": "address" - } + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "address", "name": "verifier", "type": "address" } ], "name": "ChannelVerified", "type": "event" @@ -147,18 +90,17 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amountRefunded", - "type": "uint256" - } + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountClaimed", "type": "uint256" } + ], + "name": "ChatIncentiveClaimed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountRefunded", "type": "uint256" } ], "name": "DeactivateChannel", "type": "event" @@ -166,31 +108,32 @@ { "anonymous": false, "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } + { "indexed": false, "internalType": "address", "name": "requestSender", "type": "address" }, + { "indexed": false, "internalType": "address", "name": "requestReceiver", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "amountForReqReceiver", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "feePoolAmount", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "timestamp", "type": "uint256" } ], + "name": "IncentivizeChatReqReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" }], + "name": "Initialized", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amountDeposited", - "type": "uint256" - } + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountDeposited", "type": "uint256" } ], "name": "ReactivateChannel", "type": "event" @@ -198,18 +141,8 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "rewardAmount", - "type": "uint256" - } + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": false, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" } ], "name": "RewardsClaimed", "type": "event" @@ -217,50 +150,53 @@ { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "amountRefunded", - "type": "uint256" - } + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "rewardAmount", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "fromEpoch", "type": "uint256" }, + { "indexed": false, "internalType": "uint256", "name": "tillEpoch", "type": "uint256" } ], - "name": "TimeBoundChannelDestroyed", + "name": "RewardsHarvested", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "account", - "type": "address" - } + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountStaked", "type": "uint256" } ], + "name": "Staked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountRefunded", "type": "uint256" } + ], + "name": "TimeBoundChannelDestroyed", + "type": "event" + }, + { + "anonymous": false, + "inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "channel", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "identity", - "type": "bytes" - } + { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, + { "indexed": true, "internalType": "uint256", "name": "amountUnstaked", "type": "uint256" } + ], + "name": "Unstaked", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { "indexed": true, "internalType": "address", "name": "channel", "type": "address" }, + { "indexed": false, "internalType": "bytes", "name": "identity", "type": "bytes" }, + { "indexed": true, "internalType": "uint256", "name": "amountDeposited", "type": "uint256" } ], "name": "UpdateChannel", "type": "event" @@ -268,238 +204,114 @@ { "inputs": [], "name": "ADD_CHANNEL_MIN_FEES", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CHANNEL_POOL_FUNDS", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CREATE_CHANNEL_TYPEHASH", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], + "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "DOMAIN_TYPEHASH", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], + "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "FEE_AMOUNT", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "MIN_POOL_CONTRIBUTION", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PROTOCOL_POOL_FEES", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "PUSH_TOKEN_ADDRESS", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "REFERRAL_CODE", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "UNISWAP_V2_ROUTER", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "WETH_ADDRESS", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "aDaiAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes", - "name": "_subGraphData", - "type": "bytes" - } - ], - "name": "addSubGraph", + "inputs": [{ "internalType": "uint256", "name": "_rewardAmount", "type": "uint256" }], + "name": "addPoolFees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_startIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_endIndex", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "_channelList", - "type": "address[]" - } - ], - "name": "batchRevokeVerification", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], + "inputs": [{ "internalType": "bytes", "name": "_subGraphData", "type": "bytes" }], + "name": "addSubGraph", + "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { - "internalType": "uint256", - "name": "_startIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_endIndex", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "_channelList", - "type": "address[]" - } + { "internalType": "uint256", "name": "_startIndex", "type": "uint256" }, + { "internalType": "uint256", "name": "_endIndex", "type": "uint256" }, + { "internalType": "address[]", "name": "_channelList", "type": "address[]" } ], "name": "batchVerification", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channelAddress", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "_channelAddress", "type": "address" }], "name": "blockChannel", "outputs": [], "stateMutability": "nonpayable", @@ -507,126 +319,57 @@ }, { "inputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } + { "internalType": "address", "name": "_user", "type": "address" }, + { "internalType": "uint256", "name": "_epochId", "type": "uint256" } ], + "name": "calculateEpochRewards", + "outputs": [{ "internalType": "uint256", "name": "rewards", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], + "name": "celebUserFunds", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "channelById", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "channelNotifSettings", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], + "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "channelUpdateCounter", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "channels", "outputs": [ - { - "internalType": "enum EPNSCoreStorageV1_5.ChannelType", - "name": "channelType", - "type": "uint8" - }, - { - "internalType": "uint8", - "name": "channelState", - "type": "uint8" - }, - { - "internalType": "address", - "name": "verifiedBy", - "type": "address" - }, - { - "internalType": "uint256", - "name": "poolContribution", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelHistoricalZ", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelFairShareCount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelLastUpdate", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelStartBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelUpdateBlock", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "channelWeight", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "expiryTime", - "type": "uint256" - } + { "internalType": "enum PushCoreStorageV1_5.ChannelType", "name": "channelType", "type": "uint8" }, + { "internalType": "uint8", "name": "channelState", "type": "uint8" }, + { "internalType": "address", "name": "verifiedBy", "type": "address" }, + { "internalType": "uint256", "name": "poolContribution", "type": "uint256" }, + { "internalType": "uint256", "name": "channelHistoricalZ", "type": "uint256" }, + { "internalType": "uint256", "name": "channelFairShareCount", "type": "uint256" }, + { "internalType": "uint256", "name": "channelLastUpdate", "type": "uint256" }, + { "internalType": "uint256", "name": "channelStartBlock", "type": "uint256" }, + { "internalType": "uint256", "name": "channelUpdateBlock", "type": "uint256" }, + { "internalType": "uint256", "name": "channelWeight", "type": "uint256" }, + { "internalType": "uint256", "name": "expiryTime", "type": "uint256" } ], "stateMutability": "view", "type": "function" @@ -634,38 +377,23 @@ { "inputs": [], "name": "channelsCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, + { + "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], + "name": "claimChatIncentives", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, { "inputs": [ - { - "internalType": "uint256", - "name": "_notifOptions", - "type": "uint256" - }, - { - "internalType": "string", - "name": "_notifSettings", - "type": "string" - }, - { - "internalType": "string", - "name": "_notifDescription", - "type": "string" - }, - { - "internalType": "uint256", - "name": "_amountDeposited", - "type": "uint256" - } + { "internalType": "uint256", "name": "_notifOptions", "type": "uint256" }, + { "internalType": "string", "name": "_notifSettings", "type": "string" }, + { "internalType": "string", "name": "_notifDescription", "type": "string" }, + { "internalType": "uint256", "name": "_amountDeposited", "type": "uint256" } ], "name": "createChannelSettings", "outputs": [], @@ -674,26 +402,10 @@ }, { "inputs": [ - { - "internalType": "enum EPNSCoreStorageV1_5.ChannelType", - "name": "_channelType", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "_identity", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_channelExpiryTime", - "type": "uint256" - } + { "internalType": "enum PushCoreStorageV1_5.ChannelType", "name": "_channelType", "type": "uint8" }, + { "internalType": "bytes", "name": "_identity", "type": "bytes" }, + { "internalType": "uint256", "name": "_amount", "type": "uint256" }, + { "internalType": "uint256", "name": "_channelExpiryTime", "type": "uint256" } ], "name": "createChannelWithPUSH", "outputs": [], @@ -703,31 +415,20 @@ { "inputs": [], "name": "daiAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "deactivateChannel", + "inputs": [{ "internalType": "uint256", "name": "_tillEpoch", "type": "uint256" }], + "name": "daoHarvestPaginated", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [], "name": "deactivateChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channelAddress", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "_channelAddress", "type": "address" }], "name": "destroyTimeBoundChannel", "outputs": [], "stateMutability": "nonpayable", @@ -736,510 +437,300 @@ { "inputs": [], "name": "epnsCommunicator", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channel", - "type": "address" - } - ], - "name": "getChannelState", - "outputs": [ - { - "internalType": "uint256", - "name": "state", - "type": "uint256" - } - ], + "inputs": [], + "name": "epochDuration", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channel", - "type": "address" - } - ], + "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "name": "epochRewards", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "name": "epochToTotalStakedWeight", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "feePoolStakingContract", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "genesisEpoch", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [{ "internalType": "address", "name": "_channel", "type": "address" }], "name": "getChannelVerfication", - "outputs": [ - { - "internalType": "uint8", - "name": "verificationStatus", - "type": "uint8" - } + "outputs": [{ "internalType": "uint8", "name": "verificationStatus", "type": "uint8" }], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "_user", "type": "address" }, + { "internalType": "uint256", "name": "_epoch", "type": "uint256" } ], + "name": "getEpochToUserStakedWeight", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "governance", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "groupFairShareCount", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "groupHistoricalZ", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "groupLastUpdate", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "groupNormalizedWeight", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_pushChannelAdmin", - "type": "address" - }, - { - "internalType": "address", - "name": "_pushTokenAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_wethAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_uniswapRouterAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_lendingPoolProviderAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_daiAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_aDaiAddress", - "type": "address" - }, - { - "internalType": "uint256", - "name": "_referralCode", - "type": "uint256" - } - ], - "name": "initialize", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } + { "internalType": "address", "name": "requestSender", "type": "address" }, + { "internalType": "address", "name": "requestReceiver", "type": "address" }, + { "internalType": "uint256", "name": "amount", "type": "uint256" } ], + "name": "handleChatRequestData", + "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [], "name": "harvestAll", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "isMigrationComplete", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } + "inputs": [{ "internalType": "uint256", "name": "_tillEpoch", "type": "uint256" }], + "name": "harvestPaginated", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { "internalType": "address", "name": "_pushChannelAdmin", "type": "address" }, + { "internalType": "address", "name": "_pushTokenAddress", "type": "address" }, + { "internalType": "address", "name": "_wethAddress", "type": "address" }, + { "internalType": "address", "name": "_uniswapRouterAddress", "type": "address" }, + { "internalType": "address", "name": "_lendingPoolProviderAddress", "type": "address" }, + { "internalType": "address", "name": "_daiAddress", "type": "address" }, + { "internalType": "address", "name": "_aDaiAddress", "type": "address" }, + { "internalType": "uint256", "name": "_referralCode", "type": "uint256" } ], - "stateMutability": "view", + "name": "initialize", + "outputs": [{ "internalType": "bool", "name": "success", "type": "bool" }], + "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [], "name": "initializeStake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "lendingPoolProviderAddress", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "name": "isMigrationComplete", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], "stateMutability": "view", "type": "function" }, { "inputs": [ - { - "internalType": "uint256", - "name": "_startIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_endIndex", - "type": "uint256" - }, - { - "internalType": "address[]", - "name": "_channelAddresses", - "type": "address[]" - }, - { - "internalType": "enum EPNSCoreStorageV1_5.ChannelType[]", - "name": "_channelTypeList", - "type": "uint8[]" - }, - { - "internalType": "bytes[]", - "name": "_identityList", - "type": "bytes[]" - }, - { - "internalType": "uint256[]", - "name": "_amountList", - "type": "uint256[]" - }, - { - "internalType": "uint256[]", - "name": "_channelExpiryTime", - "type": "uint256[]" - } + { "internalType": "uint256", "name": "_from", "type": "uint256" }, + { "internalType": "uint256", "name": "_to", "type": "uint256" } ], - "name": "migrateChannelData", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", + "name": "lastEpochRelative", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [], + "name": "lendingPoolProviderAddress", + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], + "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], + "outputs": [{ "internalType": "string", "name": "", "type": "string" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "nonces", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, + { "inputs": [], "name": "pauseContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "pauseContract", - "outputs": [], - "stateMutability": "nonpayable", + "name": "paused", + "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], + "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "paused", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], + "name": "previouslySetEpochRewards", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pushChannelAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], + "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], "name": "reactivateChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_commAddress", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "_commAddress", "type": "address" }], "name": "setEpnsCommunicatorAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_newFees", - "type": "uint256" - } - ], + "inputs": [{ "internalType": "uint256", "name": "_newFees", "type": "uint256" }], "name": "setFeeAmount", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_governanceAddress", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "_governanceAddress", "type": "address" }], "name": "setGovernanceAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "setMigrationComplete", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "_newFees", - "type": "uint256" - } - ], + "inputs": [{ "internalType": "uint256", "name": "_newFees", "type": "uint256" }], "name": "setMinChannelCreationFees", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_newAmount", - "type": "uint256" - } - ], + "inputs": [{ "internalType": "uint256", "name": "_newAmount", "type": "uint256" }], "name": "setMinPoolContribution", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_newAdmin", - "type": "address" - } - ], - "name": "transferPushChannelAdminControl", + "inputs": [{ "internalType": "uint256", "name": "_amount", "type": "uint256" }], + "name": "stake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], - "name": "unPauseContract", - "outputs": [], - "stateMutability": "nonpayable", + "name": "totalStakedAmount", + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channel", - "type": "address" - } - ], - "name": "unverifyChannel", + "inputs": [{ "internalType": "address", "name": "_newAdmin", "type": "address" }], + "name": "transferPushChannelAdminControl", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [], "name": "unPauseContract", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, + { "inputs": [], "name": "unstake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channel", - "type": "address" - }, - { - "internalType": "bytes", - "name": "_newIdentity", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "_amount", - "type": "uint256" - } - ], - "name": "updateChannelMeta", + "inputs": [{ "internalType": "address", "name": "_channel", "type": "address" }], + "name": "unverifyChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_newAddress", - "type": "address" - } + { "internalType": "address", "name": "_channel", "type": "address" }, + { "internalType": "bytes", "name": "_newIdentity", "type": "bytes" }, + { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], - "name": "updateUniswapRouterAddress", + "name": "updateChannelMeta", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_newAddress", - "type": "address" - } + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], + "name": "userFeesInfo", + "outputs": [ + { "internalType": "uint256", "name": "stakedAmount", "type": "uint256" }, + { "internalType": "uint256", "name": "stakedWeight", "type": "uint256" }, + { "internalType": "uint256", "name": "lastStakedBlock", "type": "uint256" }, + { "internalType": "uint256", "name": "lastClaimedBlock", "type": "uint256" } ], - "name": "updateWETHAddress", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "", "type": "address" }], "name": "usersRewardsClaimed", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], + "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_channel", - "type": "address" - } - ], + "inputs": [{ "internalType": "address", "name": "_channel", "type": "address" }], "name": "verifyChannel", "outputs": [], "stateMutability": "nonpayable", "type": "function" } -] \ No newline at end of file +] diff --git a/src/config/config-dev.js b/src/config/config-dev.js index 57e26d8c1e..2f39d4967c 100644 --- a/src/config/config-dev.js +++ b/src/config/config-dev.js @@ -22,7 +22,8 @@ export const config = { * Allowed Networks */ allowedNetworks: [ - 5, // for eth goerli + // 5, // for eth goerli + 11155111, // for eth sepolia 80001, //for mumbai polygon 97, // bnb testnet 420, // optimism goerli testnet @@ -33,8 +34,8 @@ export const config = { /** * Core Network Related Data */ - coreContractChain: 5, //the chain id of the network which the core contract relies on - coreRPC: 'https://goerli.infura.io/v3/4ff53a5254144d988a8318210b56f47a', + coreContractChain: 11155111, //the chain id of the network which the core contract relies on + coreRPC: 'https://sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7', mainnetCoreRPC: "https://mainnet.infura.io/v3/4ff53a5254144d988a8318210b56f47a", mainnetCoreContractChain: 1, aliasRPC: { @@ -78,12 +79,12 @@ export const config = { */ export const addresses = { ceaErc20: "0xc1C0472c0C80bCcDC7F5D01A376Bd97a734B8815", - epnscore: "0x23346b732d56d34ec4e890419fbfb8548216a799", - epnsEthComm: "0xc064F30bac07e84500c97A04D21a9d1bfFC72Ec0", + epnscore: "0x5AB1520E2bd519BDab2e1347EEe81C00a77f4946", + epnsEthComm: "0x9dDCD7ed7151afab43044E4D694FA064742C428c", epnsPolyComm: "0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504", // the ploygon comm contract - pushToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", //address for push token + pushToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", //address for push token aDai: "0x31f30d9A5627eAfeC4433Ae2886Cf6cc3D25E772", - epnsToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", + epnsToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", epnsLPToken: "0x1f094Bd8c260D0C3fC79157096015990885af4d2", rockstar: "0x3f8C2152b79276b78315CAF66cCF951780580A8a", batchMintNFT: "0xCf733D547B9f7F87c1B1f63f45c197C007F8eedf", @@ -105,23 +106,23 @@ export const addresses = { stakingV2: "0x0B318CA01Cec62bB29526591f368b44f4b8a0303", yieldFarmLP: "0x576c46b328433AaDcb9d9cDd81E0A92852bb0B6F", // yieldFarmLP: "0x13ac63901c8fD5797939099553582951fAbAFDE3", - pushCoreV2: "0x23346b732d56d34ec4e890419fbfb8548216a799", + pushCoreV2: "0x5AB1520E2bd519BDab2e1347EEe81C00a77f4946", // pushCoreV2: "0x0E76e9776CB192f5840B357780efB325885073FF", uniV2LPToken: "0x698839247E5b83572fFF6ccdcf386CC37e60bEf5", - pushToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", + pushToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", } export const CHAIN_DETAILS = { - 5: { - label: "Ethereum Goerli", - name: "ETH_TEST_GOERLI", - chainId: 5, - rpcUrl: "https://goerli.infura.io/v3/4ff53a5254144d988a8318210b56f47a", - commAddress: "0xc064F30bac07e84500c97A04D21a9d1bfFC72Ec0", - network: "goerli", + 11155111: { + label: "Ethereum Sepolia", + name: "ETH_TEST_SEPOLIA", + chainId: 11155111, + rpcUrl: "https://sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7", + commAddress: "0x28709649Dfda9baDEbb61dBF7a8D199cfC8EcF2e", + network: "sepolia", }, 80001: { label: "Polygon Mumbai", diff --git a/src/config/config-staging.js b/src/config/config-staging.js index 2d257f4f66..edadfcf376 100644 --- a/src/config/config-staging.js +++ b/src/config/config-staging.js @@ -23,7 +23,8 @@ export const config = { */ allowedNetworks: [ // 42, //for kovan - 5, // for goerli + // 5, // for goerli + 11155111, // for eth sepolia 80001, //for mumbai polygon 97, // bnb testnet 420, // optimism goerli testnet @@ -34,8 +35,8 @@ export const config = { /** * Core Network Related Data */ - coreContractChain: 5, //the chain id of the network which the core contract relies on - coreRPC: 'https://goerli.infura.io/v3/4ff53a5254144d988a8318210b56f47a', + coreContractChain: 11155111, //the chain id of the network which the core contract relies on + coreRPC: 'https://sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7', mainnetCoreRPC: "https://mainnet.infura.io/v3/4ff53a5254144d988a8318210b56f47a", mainnetCoreContractChain: 1, aliasRPC: { @@ -79,15 +80,15 @@ export const config = { */ export const addresses = { ceaErc20: "0xc1C0472c0C80bCcDC7F5D01A376Bd97a734B8815", - epnscore: "0xd4E3ceC407cD36d9e3767cD189ccCaFBF549202C", - epnsEthComm: "0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa", // the core contract + epnscore: "0x9d65129223451fbd58fc299c635cd919baf2564c", + epnsEthComm: "0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7", // the core contract epnsPolyComm: "0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa", // the ploygon comm contract - pushToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", //address for push token + pushToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", //address for push token aDai: "0x31f30d9A5627eAfeC4433Ae2886Cf6cc3D25E772", // staking: "0xAECb9074e222e8F06f8034140A3F86610E4d3c3E", // deprecated staking addresses // yieldFarmPUSH: "0xb41cd6760d3b1d0d216851f63fda9573b04dd46e", // yieldFarmLP: "0x604f629A6b5E85805D57f39493BBC2856cE8A540", - epnsToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", + epnsToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", epnsLPToken: "0x1f094Bd8c260D0C3fC79157096015990885af4d2", uniV2LPToken:"0x698839247E5b83572fFF6ccdcf386CC37e60bEf5",// for new staking V2 Contract on staging rockstar: "0x3f8C2152b79276b78315CAF66cCF951780580A8a", @@ -108,20 +109,20 @@ export const addresses = { //For Yield Farm V2 stakingV2:"0xA99dE35dce05f59fF87ae393a7576B8Ce5881416", yieldFarmLP: "0xeE543C5bC1b6EB647CfC23fe95D3C5877945Ad21", - pushCoreV2: "0xd4E3ceC407cD36d9e3767cD189ccCaFBF549202C",//not upgraded + pushCoreV2: "0x9d65129223451fbd58fc299c635cd919baf2564c",//not upgraded uniV2LPToken: "0x698839247E5b83572fFF6ccdcf386CC37e60bEf5", - pushToken: "0x2b9bE9259a4F5Ba6344c1b1c07911539642a2D33", + pushToken: "0x37c779a1564DCc0e3914aB130e0e787d93e21804", } export const CHAIN_DETAILS = { - 5: { - label: "Ethereum Goerli", - name: "ETH_TEST_GOERLI", - chainId: 5, - rpcUrl: "https://goerli.infura.io/v3/4ff53a5254144d988a8318210b56f47a", - commAddress: "0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa", - network: "goerli", + 11155111: { + label: "Ethereum Sepolia", + name: "ETH_TEST_SEPOLIA", + chainId: 11155111, + rpcUrl: "https://sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7", + commAddress: "0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7", + network: "sepolia", }, 80001: { label: "Polygon Mumbai", diff --git a/src/connectors/chains.ts b/src/connectors/chains.ts index 98b1fc345f..2a55a04aaa 100644 --- a/src/connectors/chains.ts +++ b/src/connectors/chains.ts @@ -109,10 +109,16 @@ export const MAINNET_CHAINS: ChainConfig = { } export const TESTNET_CHAINS: ChainConfig = { - 5: { - urls: [getInfuraUrlFor('goerli')].filter(Boolean), + // 5: { + // urls: [getInfuraUrlFor('goerli')].filter(Boolean), + // nativeCurrency: ETH, + // name: 'Görli', + // }, + 11155111: { + urls: [getInfuraUrlFor('sepolia')].filter(Boolean), nativeCurrency: ETH, - name: 'Görli', + name: 'Sepolia', + blockExplorerUrls: ['https://sepolia.etherscan.io'], }, 420: { urls: [getInfuraUrlFor('optimism-goerli'), 'https://goerli.optimism.io'].filter(Boolean), diff --git a/src/helpers/CaipHelper.ts b/src/helpers/CaipHelper.ts index 9233228479..086a600902 100644 --- a/src/helpers/CaipHelper.ts +++ b/src/helpers/CaipHelper.ts @@ -1,7 +1,7 @@ // Internal Configs import { appConfig } from '../config'; -export const Eip155EnabledIds: Array<Number> = [1, 56, 137, 10, 1101, 42161, 5, 97, 80001, 420, 1442, 421613]; +export const Eip155EnabledIds: Array<Number> = [1, 56, 137, 10, 1101, 42161, 11155111, 97, 80001, 420, 1442, 421613]; // Types type CAIPProps = { diff --git a/src/helpers/UtilityHelper.ts b/src/helpers/UtilityHelper.ts index 74a71ebcd3..eb84beac90 100644 --- a/src/helpers/UtilityHelper.ts +++ b/src/helpers/UtilityHelper.ts @@ -101,6 +101,7 @@ export const EnvHelper = { export const networkName = { 42: 'Ethereum Kovan', 5: "Ethereum Goerli", + 11155111: "Ethereum Sepolia", 1: 'Ethereum Mainnet', 137: 'Polygon Mainnet', 80001: 'Polygon Mumbai', @@ -116,6 +117,7 @@ export const networkName = { export const chainNameBackendStandard = { 5: "ETH_TEST_GOERLI", + 11155111: "ETH_TEST_SEPOLIA", 1: 'ETH_MAINNET', 137: 'POLYGON_MAINNET', 80001: 'POLYGON_TEST_MUMBAI', @@ -137,7 +139,8 @@ export const aliasChainIdToChainName={ export const aliasChainIdsMapping = { 1: 137, 42: 80001, - 5: 80001 + 5: 80001, + 11155111: 80001 }; export const NETWORK_DETAILS = { @@ -229,7 +232,8 @@ export const LOGO_FROM_CHAIN_ID: { 1442: "PolygonZkEVM.svg", 1101: "PolygonZkEVM.svg", 42161: "Arbitrum.svg", - 421613: "Arbitrum.svg" + 421613: "Arbitrum.svg", + 11155111: "Ethereum.svg" } export type getAliasResponseType = { @@ -310,4 +314,16 @@ export const getWeb3Name=({isGroup, address, web3NameList})=>{ return web3Name; } +export const copyToClipboard = (val:string) => { + if (navigator && navigator.clipboard) { + navigator.clipboard.writeText(val); + } else { + const el = document.createElement('textarea'); + el.value = val; + document.body.appendChild(el); + el.select(); + document.execCommand('copy'); + document.body.removeChild(el); + } +}; export default UtilityHelper; diff --git a/src/helpers/w2w/udResolver.ts b/src/helpers/w2w/udResolver.ts index 423746aa7c..a6fd1a9e7d 100644 --- a/src/helpers/w2w/udResolver.ts +++ b/src/helpers/w2w/udResolver.ts @@ -3,13 +3,15 @@ import { ethers } from 'ethers'; import { appConfig, CHAIN_DETAILS } from 'config'; export const getUdResolver = (): Resolution => { - const l1ChainId = appConfig.allowedNetworks.includes(1) ? 1 : 5; + // ToDo: Enable for sepolia chainId once UD supports it + // const l1ChainId = appConfig.allowedNetworks.includes(1) ? 1 : 11155111; + const l1ChainId = 1; const l2ChainId = appConfig.allowedNetworks.includes(137) ? 137 : 80001; return Resolution.fromEthersProvider({ uns: { locations: { Layer1: { - network: CHAIN_DETAILS[l1ChainId].network, + network: "mainnet", // add config for sepolia once it's supported by UD provider: new ethers.providers.InfuraProvider(l1ChainId, appConfig.infuraAPIKey), }, Layer2: { diff --git a/src/hooks/useInactiveListener.ts b/src/hooks/useInactiveListener.ts index b50a66aec1..c7aa7ea452 100644 --- a/src/hooks/useInactiveListener.ts +++ b/src/hooks/useInactiveListener.ts @@ -15,8 +15,8 @@ export function useInactiveListener() { const getErrorMessage = () => { if (appConfig.coreContractChain === 42) return 'Unsupported Network, please connect to the Ethereum Kovan network or Polygon Mumbai network'; - else if (appConfig.coreContractChain === 5) - return 'Unsupported Network, please connect to the Ethereum Goerli, Polygon Mumbai, BNB testnet, Optimism Goerli, Arbitrum testnet or Polygon zkEVM testnet'; + else if (appConfig.coreContractChain === 11155111) + return 'Unsupported Network, please connect to the Ethereum Sepolia, Polygon Mumbai, BNB testnet, Optimism Goerli, Arbitrum testnet or Polygon zkEVM testnet'; else return 'Unsupported Network, please connect to the Ethereum, Polygon, BNB, Optimism, Arbitrum or Polygon zkEVM Mainnet'; } diff --git a/src/segments/spam.tsx b/src/segments/spam.tsx index 1609f01c1c..ead7c51eac 100644 --- a/src/segments/spam.tsx +++ b/src/segments/spam.tsx @@ -88,6 +88,7 @@ const SpamBox = ({ showFilter, setShowFilter, search, setSearch }) => { POLYGON_TEST_MUMBAI: 80001, ETH_TEST_KOVAN: 42, ETH_TEST_GOERLI: 5, + ETH_TEST_SEPOLIA: 11155111, POLYGON_MAINNET: 137, ETH_MAINNET: 1 }; diff --git a/src/structure/Header.tsx b/src/structure/Header.tsx index acea781d9a..cbc65775c6 100644 --- a/src/structure/Header.tsx +++ b/src/structure/Header.tsx @@ -120,8 +120,8 @@ function Header({ isDarkMode, darkModeToggle }) { switchChain(appConfig.coreContractChain); if (appConfig.coreContractChain === 42) return 'Unsupported Network, please connect to the Ethereum Kovan network or Polygon Mumbai network'; - else if (appConfig.coreContractChain === 5) - return 'Unsupported Network, please connect to the Ethereum Goerli, Polygon Mumbai, BNB testnet, Optimism Goerli, Arbitrum testnet or Polygon zkEVM testnet'; + else if (appConfig.coreContractChain === 11155111) + return 'Unsupported Network, please connect to the Ethereum Sepolia, Polygon Mumbai, BNB testnet, Optimism Goerli, Arbitrum testnet or Polygon zkEVM testnet'; else return 'Unsupported Network, please connect to the Ethereum, Polygon, BNB, Optimism, Arbitrum or Polygon zkEVM Mainnet'; } else { console.error(error); diff --git a/yarn.lock b/yarn.lock index fd4dc0a5bc..a202788a6e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2445,6 +2445,25 @@ __metadata: languageName: node linkType: hard +"@ensdomains/address-encoder@npm:^0.2.22": + version: 0.2.22 + resolution: "@ensdomains/address-encoder@npm:0.2.22" + dependencies: + bech32: ^2.0.0 + blakejs: ^1.1.0 + bn.js: ^4.11.8 + bs58: ^4.0.1 + crypto-addr-codec: ^0.1.8 + js-crc: ^0.2.0 + js-sha256: ^0.9.0 + js-sha512: ^0.8.0 + nano-base32: ^1.0.1 + ripemd160: ^2.0.2 + sha3: ^2.1.3 + checksum: c21dde6170984cde68977a8bdb84560630ee8e94ee890bae6ed5819004b95ac87a259df3268eaef15891b66a16a4cd9f4d9b0320c8a40c84583f9f600572cc42 + languageName: node + linkType: hard + "@esbuild/android-arm64@npm:0.19.2": version: 0.19.2 resolution: "@esbuild/android-arm64@npm:0.19.2" @@ -5423,9 +5442,9 @@ __metadata: "@mui/lab": ^5.0.0-alpha.72 "@mui/material": ^5.5.0 "@pushprotocol/ledgerlive": latest - "@pushprotocol/restapi": 1.4.32 - "@pushprotocol/socket": latest - "@pushprotocol/uiweb": 0.0.1-alpha.25 + "@pushprotocol/restapi": 1.4.37 + "@pushprotocol/socket": 0.5.3 + "@pushprotocol/uiweb": 1.1.17 "@reduxjs/toolkit": ^1.7.1 "@testing-library/dom": ^6.12.2 "@testing-library/jest-dom": ^4.2.4 @@ -5438,7 +5457,7 @@ __metadata: "@types/react-scroll-to-bottom": ^4.2.0 "@types/styled-components": 5.1.26 "@uniswap/widgets": ^2.47.3 - "@unstoppabledomains/resolution": ^8.5.0 + "@unstoppabledomains/resolution": 9.2.2 "@web3-onboard/coinbase": ^2.2.5 "@web3-onboard/core": ^2.20.4 "@web3-onboard/injected-wallets": ^2.9.0 @@ -5624,9 +5643,9 @@ __metadata: languageName: node linkType: hard -"@pushprotocol/restapi@npm:1.4.32": - version: 1.4.32 - resolution: "@pushprotocol/restapi@npm:1.4.32" +"@pushprotocol/restapi@npm:1.4.37": + version: 1.4.37 + resolution: "@pushprotocol/restapi@npm:1.4.37" dependencies: "@ambire/signature-validator": ^1.3.1 "@metamask/eth-sig-util": ^5.0.2 @@ -5647,49 +5666,49 @@ __metadata: viem: ^1.3.0 peerDependencies: ethers: ^5.6.8 - checksum: 6ea156b9d523aaf8149897c65bc2c1f93c8433de3c530580ff02c327626ce83d3f968579ae43dca61760cb19396ea961f5af2bb405f760cadc00a461b0c1b26f + checksum: 4928d056faeeb83b5ebea502fc54250c4d705cc429f736c4255a1dc84786b08b41625c0072ef8765327a3dc6707c107e9c4fb000567576a661dffdbc20c3ccef languageName: node linkType: hard -"@pushprotocol/socket@npm:^0.5.0": - version: 0.5.1 - resolution: "@pushprotocol/socket@npm:0.5.1" +"@pushprotocol/socket@npm:0.5.3": + version: 0.5.3 + resolution: "@pushprotocol/socket@npm:0.5.3" dependencies: socket.io-client: ^4.5.2 tslib: ^2.3.0 peerDependencies: ethers: ^5.6.8 - checksum: 7833cec176b72c7e9a21aee75c6e0289d2101aea8d26ee45f56bc4aced5d186588e78d944cae2e90255595c9cd773aace104d25d6536dd59ab308f4962299893 + checksum: c7de3c2b71b30295fa80ba118ca72d76184faf140fa3989e77db7e278b6b8f8ce45e6f200c3a19e7e39689929f5c81ebfa133ef644bd485b0174a489c860bd84 languageName: node linkType: hard -"@pushprotocol/socket@npm:^0.5.2": - version: 0.5.2 - resolution: "@pushprotocol/socket@npm:0.5.2" +"@pushprotocol/socket@npm:^0.5.0": + version: 0.5.1 + resolution: "@pushprotocol/socket@npm:0.5.1" dependencies: socket.io-client: ^4.5.2 tslib: ^2.3.0 peerDependencies: ethers: ^5.6.8 - checksum: 14a438269eae87979e10377e5b8a38953e190593648ce64f148def553b66467cf52ec29ce2b70956342c23f42b67ae179f54a1aab6f22d1495a3806ba0146bbc + checksum: 7833cec176b72c7e9a21aee75c6e0289d2101aea8d26ee45f56bc4aced5d186588e78d944cae2e90255595c9cd773aace104d25d6536dd59ab308f4962299893 languageName: node linkType: hard -"@pushprotocol/socket@npm:latest": - version: 0.4.2 - resolution: "@pushprotocol/socket@npm:0.4.2" +"@pushprotocol/socket@npm:^0.5.2": + version: 0.5.2 + resolution: "@pushprotocol/socket@npm:0.5.2" dependencies: socket.io-client: ^4.5.2 tslib: ^2.3.0 peerDependencies: ethers: ^5.6.8 - checksum: 7a85cb389972e8e0cb1bba74cdd3ded993a9eb6aa333fdd93ff6c9d09052b35fd7ac2c25e7156d0bda45d4f170714c93fa1ae28d9b5447cdd56b2bc963435bed + checksum: 14a438269eae87979e10377e5b8a38953e190593648ce64f148def553b66467cf52ec29ce2b70956342c23f42b67ae179f54a1aab6f22d1495a3806ba0146bbc languageName: node linkType: hard -"@pushprotocol/uiweb@npm:0.0.1-alpha.25": - version: 0.0.1-alpha.25 - resolution: "@pushprotocol/uiweb@npm:0.0.1-alpha.25" +"@pushprotocol/uiweb@npm:1.1.17": + version: 1.1.17 + resolution: "@pushprotocol/uiweb@npm:1.1.17" dependencies: "@livekit/components-react": ^1.2.2 "@livekit/components-styles": ^1.0.6 @@ -5705,7 +5724,6 @@ __metadata: date-fns: ^2.28.0 emoji-picker-react: ^4.4.9 ethers: ^5.6.8 - font-awesome: ^4.7.0 gif-picker-react: ^1.1.0 html-react-parser: ^1.4.13 livekit-client: ^1.13.3 @@ -5722,7 +5740,7 @@ __metadata: axios: ^0.27.2 react: ">=16.8.0" styled-components: ^6.0.8 - checksum: 0e312ae54f645213daba729e7d3f5efcca558c7710113c27f8cd54ea689945c3c6d786330da8d2f0f5ef730463909653aa8d712a4fa30290843ee2f4095ac5bb + checksum: 1aaaccb386750a49b57247a16c224052356a41ca599daa46f71d462d00c4ea93be531636e31557d5810fec7869892e0bac188849f7360fe625095ee98282afbb languageName: node linkType: hard @@ -8516,6 +8534,25 @@ __metadata: languageName: node linkType: hard +"@unstoppabledomains/resolution@npm:9.2.2": + version: 9.2.2 + resolution: "@unstoppabledomains/resolution@npm:9.2.2" + dependencies: + "@ensdomains/address-encoder": ^0.2.22 + "@ethersproject/abi": ^5.0.1 + bip44-constants: ^8.0.103 + bn.js: ^4.4.0 + content-hash: ^2.5.2 + cross-fetch: 4.0.0 + crypto-js: ^4.1.1 + elliptic: ^6.5.4 + ethereum-ens-network-map: ^1.0.2 + js-sha256: ^0.9.0 + js-sha3: ^0.8.0 + checksum: 4f7fbcfc41c4e4ce1c5e5431df80cecec3341bdf7b81c18b5830d4f33cf05ff6af522d1c5e75e906630f64fe7f109ced9f85b5791eb132a84a107897193b64cd + languageName: node + linkType: hard + "@unstoppabledomains/resolution@npm:^8.5.0": version: 8.5.0 resolution: "@unstoppabledomains/resolution@npm:8.5.0" @@ -11043,6 +11080,13 @@ __metadata: languageName: node linkType: hard +"big-integer@npm:1.6.36": + version: 1.6.36 + resolution: "big-integer@npm:1.6.36" + checksum: 8cb9366ab72975a94ace5a99f6f81e0624dc8a5d14349df1f331d75ceec405c9286ad04c2a1188bc4ec4aa65cbbf1f8065f5d6b529fdb4a9d9867bbdfa769306 + languageName: node + linkType: hard + "big-integer@npm:^1.6.16": version: 1.6.51 resolution: "big-integer@npm:1.6.51" @@ -11111,6 +11155,13 @@ __metadata: languageName: node linkType: hard +"bip44-constants@npm:^8.0.103": + version: 8.0.103 + resolution: "bip44-constants@npm:8.0.103" + checksum: 945fc98f21282fc8473d71726d934d00e4577ae7d642077a548ec79a5308fceac1b0e2aae63600a9c1536eb8f6b1133848f369d1d939a90982f689357959d946 + languageName: node + linkType: hard + "bip66@npm:^1.1.5": version: 1.1.5 resolution: "bip66@npm:1.1.5" @@ -12744,6 +12795,15 @@ __metadata: languageName: node linkType: hard +"cross-fetch@npm:4.0.0, cross-fetch@npm:^4.0.0": + version: 4.0.0 + resolution: "cross-fetch@npm:4.0.0" + dependencies: + node-fetch: ^2.6.12 + checksum: ecca4f37ffa0e8283e7a8a590926b66713a7ef7892757aa36c2d20ffa27b0ac5c60dcf453119c809abe5923fc0bae3702a4d896bfb406ef1077b0d0018213e24 + languageName: node + linkType: hard + "cross-fetch@npm:^3.0.5, cross-fetch@npm:^3.0.6, cross-fetch@npm:^3.1.4": version: 3.1.5 resolution: "cross-fetch@npm:3.1.5" @@ -12753,15 +12813,6 @@ __metadata: languageName: node linkType: hard -"cross-fetch@npm:^4.0.0": - version: 4.0.0 - resolution: "cross-fetch@npm:4.0.0" - dependencies: - node-fetch: ^2.6.12 - checksum: ecca4f37ffa0e8283e7a8a590926b66713a7ef7892757aa36c2d20ffa27b0ac5c60dcf453119c809abe5923fc0bae3702a4d896bfb406ef1077b0d0018213e24 - languageName: node - linkType: hard - "cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" @@ -12773,6 +12824,21 @@ __metadata: languageName: node linkType: hard +"crypto-addr-codec@npm:^0.1.8": + version: 0.1.8 + resolution: "crypto-addr-codec@npm:0.1.8" + dependencies: + base-x: ^3.0.8 + big-integer: 1.6.36 + blakejs: ^1.1.0 + bs58: ^4.0.1 + ripemd160-min: 0.0.6 + safe-buffer: ^5.2.0 + sha3: ^2.1.1 + checksum: c9d16a81eeb7cf6ac9392349dcf7d4bd5b9f3dd73c60e472fe6cba256dc2f9ba45b756f23b65a2e1abfe0612cfb4e85dd8e480783288bba239eade8abb4c4f43 + languageName: node + linkType: hard + "crypto-browserify@npm:^3.12.0": version: 3.12.0 resolution: "crypto-browserify@npm:3.12.0" @@ -15487,6 +15553,13 @@ __metadata: languageName: node linkType: hard +"ethereum-ens-network-map@npm:^1.0.2": + version: 1.0.2 + resolution: "ethereum-ens-network-map@npm:1.0.2" + checksum: 34fa160f2b1ee8ec31bfe3dcec7b4becd4a6110acde171f43b9c28e0adc126dbded9dc6747d03088b6c99f04582887e6a23cb24b718321712c85208965835ea1 + languageName: node + linkType: hard + "ethereumjs-abi@npm:^0.6.8": version: 0.6.8 resolution: "ethereumjs-abi@npm:0.6.8" @@ -19745,6 +19818,13 @@ __metadata: languageName: node linkType: hard +"js-crc@npm:^0.2.0": + version: 0.2.0 + resolution: "js-crc@npm:0.2.0" + checksum: 3e307ae64236b745658e0df50d56809a810e67f39e45b7c1302433f10560819bea1d457841b2bac0eb42b72c96d60ae4c3232613275ea6c482b3cdb98a8bab09 + languageName: node + linkType: hard + "js-sdsl@npm:^4.1.4": version: 4.4.0 resolution: "js-sdsl@npm:4.4.0" @@ -19780,6 +19860,13 @@ __metadata: languageName: node linkType: hard +"js-sha512@npm:^0.8.0": + version: 0.8.0 + resolution: "js-sha512@npm:0.8.0" + checksum: 32ca371ebd14c6c5c83360fd8b036cad2211537bef546b199ac8b901917299cab4c68f7f7c26ae72f836bbce0349cb463df9a62cdb4c90e38090fdb4db89ee87 + languageName: node + linkType: hard + "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -21961,6 +22048,13 @@ __metadata: languageName: node linkType: hard +"nano-base32@npm:^1.0.1": + version: 1.0.1 + resolution: "nano-base32@npm:1.0.1" + checksum: 1abe4229f7197ac35c91376b0a897c01d783dc0bbad35b45b70486bdca79c552d8cc7f3780ae9c815d865e3d52adacf1ca4d805ef0bfd4718f982ef5942a8285 + languageName: node + linkType: hard + "nano-css@npm:^5.3.1": version: 5.3.5 resolution: "nano-css@npm:5.3.5" @@ -26508,7 +26602,14 @@ __metadata: languageName: node linkType: hard -"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1": +"ripemd160-min@npm:0.0.6": + version: 0.0.6 + resolution: "ripemd160-min@npm:0.0.6" + checksum: 3253fec273aee407e736df0baf69f90c65f56573d6fc537532041112e7c09a2f665ee2e618ef4a88eb494923d36614322eac26ddf35a504fcfedb422fd414c75 + languageName: node + linkType: hard + +"ripemd160@npm:^2.0.0, ripemd160@npm:^2.0.1, ripemd160@npm:^2.0.2": version: 2.0.2 resolution: "ripemd160@npm:2.0.2" dependencies: @@ -27185,6 +27286,15 @@ __metadata: languageName: node linkType: hard +"sha3@npm:^2.1.1, sha3@npm:^2.1.3": + version: 2.1.4 + resolution: "sha3@npm:2.1.4" + dependencies: + buffer: 6.0.3 + checksum: fb49c8e18143cc46babc0e5d83d5f5d0149e645f26633a0e6a9aa2514df2ef91f10b6ece20da229e7ead8b8002d8e9514dcc747ef96a25b749294d6385c6f29f + languageName: node + linkType: hard + "shallowequal@npm:^1.0.1, shallowequal@npm:^1.1.0": version: 1.1.0 resolution: "shallowequal@npm:1.1.0"