diff --git a/packages/core/README.md b/packages/core/README.md index d850e87..db7262c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -56,7 +56,7 @@ WakuVoting create function expects name of DApp and address of a voting contract Address of token is derived from votingContract ```ts - import { WakuVoting } from '@status-waku-voting/core' + import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' await WakuVoting.create(appName, contractAddress, provider, multicallAddress, waku) ``` @@ -148,7 +148,7 @@ To make it easier to use WakuPolling class was created WakuPolling create expects name of DApp and address of a token contract, web3provider, also as optional parameter can take custom Waku object. ```ts - import { WakuPolling } from '@status-waku-voting/core' + import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' await WakuPolling.create(appName, tokenAddress, provider, multicallAddress, waku) ``` diff --git a/packages/core/package.json b/packages/core/package.json index be8b376..52e434f 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/core", + "name": "@dappconnect/vote-poll-sdk-core", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", "types": "dist/esm/src/index.d.ts", diff --git a/packages/polling-components/package.json b/packages/polling-components/package.json index 633c1e4..87faa59 100644 --- a/packages/polling-components/package.json +++ b/packages/polling-components/package.json @@ -32,7 +32,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@status-waku-voting/polling-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", "ethers": "^5.4.4", diff --git a/packages/polling-components/src/components/Poll.tsx b/packages/polling-components/src/components/Poll.tsx index 93d4d0f..5b470f9 100644 --- a/packages/polling-components/src/components/Poll.tsx +++ b/packages/polling-components/src/components/Poll.tsx @@ -1,8 +1,8 @@ -import { WakuPolling } from '@status-waku-voting/core' -import { DetailedTimedPoll } from '@status-waku-voting/core/dist/esm/src/models/DetailedTimedPoll' +import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' +import { DetailedTimedPoll } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/models/DetailedTimedPoll' import { BigNumber } from 'ethers' import React, { useEffect, useState } from 'react' -import { PollType } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { PollType } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import styled from 'styled-components' import { RadioGroup, SmallButton, Theme } from '@status-waku-voting/react-components' import { PollResults } from './PollResults' diff --git a/packages/polling-components/src/components/PollCreation.tsx b/packages/polling-components/src/components/PollCreation.tsx index f1dc7ea..12add8e 100644 --- a/packages/polling-components/src/components/PollCreation.tsx +++ b/packages/polling-components/src/components/PollCreation.tsx @@ -1,7 +1,7 @@ import React, { ReactNode, useState } from 'react' import styled from 'styled-components' -import { PollType } from '@status-waku-voting/core/dist/esm/src/types/PollType' -import { WakuPolling } from '@status-waku-voting/core' +import { PollType } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' +import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' import { Input, addIcon, SmallButton, Modal, Theme } from '@status-waku-voting/react-components' function getLocaleIsoTime(dateTime: Date) { diff --git a/packages/polling-components/src/components/PollList.tsx b/packages/polling-components/src/components/PollList.tsx index 27d45b8..bc33f2c 100644 --- a/packages/polling-components/src/components/PollList.tsx +++ b/packages/polling-components/src/components/PollList.tsx @@ -1,5 +1,5 @@ -import { WakuPolling } from '@status-waku-voting/core' -import { DetailedTimedPoll } from '@status-waku-voting/core/dist/esm/src/models/DetailedTimedPoll' +import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' +import { DetailedTimedPoll } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/models/DetailedTimedPoll' import React, { useEffect, useState } from 'react' import { Poll } from './Poll' import styled from 'styled-components' diff --git a/packages/polling-components/src/components/PollResults.tsx b/packages/polling-components/src/components/PollResults.tsx index 9366320..982e18b 100644 --- a/packages/polling-components/src/components/PollResults.tsx +++ b/packages/polling-components/src/components/PollResults.tsx @@ -1,5 +1,5 @@ import React from 'react' -import { DetailedTimedPoll } from '@status-waku-voting/core/dist/esm/src/models/DetailedTimedPoll' +import { DetailedTimedPoll } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/models/DetailedTimedPoll' import styled from 'styled-components' import { colorRouletteGenerator, checkCircleIcon } from '@status-waku-voting/react-components' diff --git a/packages/polling-example/package.json b/packages/polling-example/package.json index 91885e3..dc57b8d 100644 --- a/packages/polling-example/package.json +++ b/packages/polling-example/package.json @@ -30,7 +30,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@status-waku-voting/polling-components": "^0.1.0", "@status-waku-voting/polling-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", diff --git a/packages/polling-hooks/package.json b/packages/polling-hooks/package.json index 0b09d83..87b81df 100644 --- a/packages/polling-hooks/package.json +++ b/packages/polling-hooks/package.json @@ -28,7 +28,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@usedapp/core": "^0.4.7", "ethers": "^5.4.4", "react": "^17.0.2", diff --git a/packages/polling-hooks/src/hooks/usePollList.ts b/packages/polling-hooks/src/hooks/usePollList.ts index 848ff08..f9fb113 100644 --- a/packages/polling-hooks/src/hooks/usePollList.ts +++ b/packages/polling-hooks/src/hooks/usePollList.ts @@ -1,5 +1,5 @@ -import { WakuPolling } from '@status-waku-voting/core' -import { DetailedTimedPoll } from '@status-waku-voting/core/dist/esm/src/models/DetailedTimedPoll' +import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' +import { DetailedTimedPoll } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/models/DetailedTimedPoll' import React, { useEffect, useState } from 'react' export function usePollList(wakuPolling: WakuPolling | undefined) { diff --git a/packages/polling-hooks/src/hooks/useWakuPolling.ts b/packages/polling-hooks/src/hooks/useWakuPolling.ts index d3f4a0e..8ca1fa3 100644 --- a/packages/polling-hooks/src/hooks/useWakuPolling.ts +++ b/packages/polling-hooks/src/hooks/useWakuPolling.ts @@ -1,5 +1,5 @@ import { useEffect, useState, useRef } from 'react' -import { WakuPolling } from '@status-waku-voting/core' +import { WakuPolling } from '@dappconnect/vote-poll-sdk-core' import { Web3Provider } from '@ethersproject/providers' export function useWakuPolling( diff --git a/packages/react-components/package.json b/packages/react-components/package.json index b42f5a9..de0dad6 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -33,7 +33,7 @@ "ethers": "^5.4.4", "react": "^17.0.2", "styled-components": "^5.3.0", - "@status-waku-voting/core": "^0.1.0" + "@dappconnect/vote-poll-sdk-core": "^0.1.0" }, "devDependencies": { "@types/chai": "^4.2.21", diff --git a/packages/react-components/src/hooks/useTokenBalance.ts b/packages/react-components/src/hooks/useTokenBalance.ts index 70a0888..8a6f21d 100644 --- a/packages/react-components/src/hooks/useTokenBalance.ts +++ b/packages/react-components/src/hooks/useTokenBalance.ts @@ -1,4 +1,4 @@ -import { WakuMessaging } from '@status-waku-voting/core' +import { WakuMessaging } from '@dappconnect/vote-poll-sdk-core' import { BigNumber } from 'ethers' import React, { useEffect, useState } from 'react' diff --git a/packages/voting-components/package.json b/packages/voting-components/package.json index dfe5984..04b6f01 100644 --- a/packages/voting-components/package.json +++ b/packages/voting-components/package.json @@ -32,7 +32,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@status-waku-voting/voting-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", "ethers": "^5.4.4", diff --git a/packages/voting-components/src/components/ProposalInfo.tsx b/packages/voting-components/src/components/ProposalInfo.tsx index e803643..ad2eabd 100644 --- a/packages/voting-components/src/components/ProposalInfo.tsx +++ b/packages/voting-components/src/components/ProposalInfo.tsx @@ -1,4 +1,4 @@ -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import React from 'react' import styled from 'styled-components' import { ViewLink } from './ViewLink' diff --git a/packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx b/packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx index e0dccfe..5f76a97 100644 --- a/packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx +++ b/packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx @@ -4,8 +4,8 @@ import { FinalBtn, VoteBtnAgainst, VoteBtnFor } from '../Buttons' import { VoteSubmitButton } from './VoteSubmitButton' import { VoteChart } from './VoteChart' import { ViewLink } from '../ViewLink' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' -import { WakuVoting } from '@status-waku-voting/core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' interface ProposalVoteProps { votingRoom: VotingRoom diff --git a/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx b/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx index 7f90395..e8b125c 100644 --- a/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx +++ b/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx @@ -9,8 +9,8 @@ import crossWinnerIcon from '../../assets/svg/crossWinner.svg' import checkIcon from '../../assets/svg/check.svg' import checkWinnerIcon from '../../assets/svg/checkWinner.svg' import { useMobileVersion } from '@status-waku-voting/react-components' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' -import { WakuVoting } from '@status-waku-voting/core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' export interface VoteChartProps { votingRoom: VotingRoom diff --git a/packages/voting-components/src/components/VoteModal/AmountModal.tsx b/packages/voting-components/src/components/VoteModal/AmountModal.tsx index 81f632b..cc3e28e 100644 --- a/packages/voting-components/src/components/VoteModal/AmountModal.tsx +++ b/packages/voting-components/src/components/VoteModal/AmountModal.tsx @@ -3,8 +3,8 @@ import styled from 'styled-components' import { VoteChart } from '../ProposalVoteCard/VoteChart' import { DisabledButton, VoteBtnAgainst, VoteBtnFor } from '../Buttons' import { VotePropose } from '../VotePropose' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' -import { WakuVoting } from '@status-waku-voting/core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { BigNumber } from 'ethers' export interface AmountModalProps { diff --git a/packages/voting-components/src/components/VoteModal/ConfirmModal.tsx b/packages/voting-components/src/components/VoteModal/ConfirmModal.tsx index ffcad98..f34d7e6 100644 --- a/packages/voting-components/src/components/VoteModal/ConfirmModal.tsx +++ b/packages/voting-components/src/components/VoteModal/ConfirmModal.tsx @@ -1,5 +1,5 @@ -import { WakuVoting } from '@status-waku-voting/core' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import React from 'react' import styled from 'styled-components' import { FinalBtn } from '../Buttons' diff --git a/packages/voting-components/src/components/VoteModal/VoteModal.tsx b/packages/voting-components/src/components/VoteModal/VoteModal.tsx index 6e77b4f..24ba3c5 100644 --- a/packages/voting-components/src/components/VoteModal/VoteModal.tsx +++ b/packages/voting-components/src/components/VoteModal/VoteModal.tsx @@ -1,9 +1,9 @@ import React, { useEffect, useMemo, useState } from 'react' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import { Modal, Theme } from '@status-waku-voting/react-components' import { AmountModal } from './AmountModal' import { ConfirmModal } from './ConfirmModal' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' export interface VoteModalProps { setShowModal: (val: boolean) => void diff --git a/packages/voting-components/src/components/VotePropose.tsx b/packages/voting-components/src/components/VotePropose.tsx index 9b8a9dd..de75f73 100644 --- a/packages/voting-components/src/components/VotePropose.tsx +++ b/packages/voting-components/src/components/VotePropose.tsx @@ -1,4 +1,4 @@ -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import React, { useCallback, useMemo } from 'react' import { useState } from 'react' import styled from 'styled-components' diff --git a/packages/voting-components/src/components/VotingRoomCard.tsx b/packages/voting-components/src/components/VotingRoomCard.tsx index 016878e..f668c0e 100644 --- a/packages/voting-components/src/components/VotingRoomCard.tsx +++ b/packages/voting-components/src/components/VotingRoomCard.tsx @@ -3,11 +3,11 @@ import styled from 'styled-components' import { Theme } from '@status-waku-voting/react-components' import { ProposalInfo } from './ProposalInfo' import { ProposalVote } from './ProposalVoteCard/ProposalVote' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useVotingRoom } from '@status-waku-voting/voting-hooks' import { VoteModal, VoteModalProps } from './VoteModal/VoteModal' import { useRefMobileVersion } from '@status-waku-voting/react-components' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' interface VotingRoomCardProps { votingRoomId: number diff --git a/packages/voting-components/src/components/VotingRoomList.tsx b/packages/voting-components/src/components/VotingRoomList.tsx index 0ba1b08..0c3233d 100644 --- a/packages/voting-components/src/components/VotingRoomList.tsx +++ b/packages/voting-components/src/components/VotingRoomList.tsx @@ -2,9 +2,9 @@ import React from 'react' import styled from 'styled-components' import { Theme } from '@status-waku-voting/react-components' import { VotingRoomCard } from './VotingRoomCard' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' type VotingRoomListProps = { theme: Theme diff --git a/packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx b/packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx index 521c128..c874e44 100644 --- a/packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx +++ b/packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx @@ -3,7 +3,7 @@ import styled from 'styled-components' import { CardHeading } from '../ProposalInfo' import { VotingRoomDetailInput, ProposingData } from '../newVoteModal/VotingRoomDetailInput' import { TokenAmountScreen } from '../newVoteModal/TokenAmountScreen' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' interface NewVotingRoomMobileProps { availableAmount: number diff --git a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx index 02fea01..060c67a 100644 --- a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx +++ b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx @@ -8,7 +8,7 @@ import { ProposalInfo } from '../ProposalInfo' import { VotePropose } from '../VotePropose' import { VotesBtns } from '../ProposalVoteCard/ProposalVote' import { useVotingRoom } from '@status-waku-voting/voting-hooks' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { BigNumber } from 'ethers' interface VotingRoomMobileProps { wakuVoting: WakuVoting diff --git a/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx b/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx index 28a661d..db6407e 100644 --- a/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx +++ b/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx @@ -1,4 +1,4 @@ -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { Modal, Theme } from '@status-waku-voting/react-components' import React, { useEffect, useState } from 'react' import { VotingRoomDetailInput } from './VotingRoomDetailInput' diff --git a/packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx b/packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx index 6325e44..41e181d 100644 --- a/packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx +++ b/packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx @@ -1,4 +1,4 @@ -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useEthers } from '@usedapp/core' import React, { useState } from 'react' import styled from 'styled-components' diff --git a/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx b/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx index 20836d3..e7299fe 100644 --- a/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx +++ b/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx @@ -3,7 +3,7 @@ import styled from 'styled-components' import { ProposingBtn } from '../Buttons' import { TextArea } from '../Input' import { blueTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' interface VotingRoomDetailInputProps { availableAmount: number diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index 9eb45bc..33ec9d9 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -32,7 +32,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@status-waku-voting/voting-components": "^0.1.0", "@status-waku-voting/voting-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/voting-example/src/components/Voting.tsx index fd0fbe9..6f993cb 100644 --- a/packages/voting-example/src/components/Voting.tsx +++ b/packages/voting-example/src/components/Voting.tsx @@ -7,12 +7,12 @@ import { NewVotingRoomModal, } from '@status-waku-voting/voting-components' import { blueTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useTokenBalance } from '@status-waku-voting/react-components' import { useEthers } from '@usedapp/core' import { Modal, Networks, useMobileVersion, Theme } from '@status-waku-voting/react-components' import { useVotingRoomsId } from '@status-waku-voting/voting-hooks' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import { useHistory } from 'react-router' type VotingListHeaderProps = { diff --git a/packages/voting-example/src/components/VotingMobile.tsx b/packages/voting-example/src/components/VotingMobile.tsx index 3561676..2ec45bb 100644 --- a/packages/voting-example/src/components/VotingMobile.tsx +++ b/packages/voting-example/src/components/VotingMobile.tsx @@ -4,7 +4,7 @@ import { BrowserRouter } from 'react-router-dom' import styled from 'styled-components' import { VotingRoomMobile, NewVotingRoomMobile } from '@status-waku-voting/voting-components' import { Voting } from './Voting' -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useTokenBalance } from '@status-waku-voting/react-components' type VotingRoomCreationProps = { diff --git a/packages/voting-hooks/package.json b/packages/voting-hooks/package.json index 545f3f7..f0a4845 100644 --- a/packages/voting-hooks/package.json +++ b/packages/voting-hooks/package.json @@ -26,7 +26,7 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/core": "^0.1.0", + "@dappconnect/vote-poll-sdk-core": "^0.1.0", "ethers": "^5.4.4", "react": "^17.0.2", "styled-components": "^5.3.0" diff --git a/packages/voting-hooks/src/hooks/useVotingRoom.ts b/packages/voting-hooks/src/hooks/useVotingRoom.ts index ba8ce2f..903e132 100644 --- a/packages/voting-hooks/src/hooks/useVotingRoom.ts +++ b/packages/voting-hooks/src/hooks/useVotingRoom.ts @@ -1,6 +1,6 @@ import React, { useEffect, useState, useRef } from 'react' -import { WakuVoting } from '@status-waku-voting/core' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' export function useVotingRoom(id: number, wakuVoting: WakuVoting) { const [votingRoom, setVotingRoom] = useState(undefined) diff --git a/packages/voting-hooks/src/hooks/useVotingRoomsId.ts b/packages/voting-hooks/src/hooks/useVotingRoomsId.ts index 9827827..14014de 100644 --- a/packages/voting-hooks/src/hooks/useVotingRoomsId.ts +++ b/packages/voting-hooks/src/hooks/useVotingRoomsId.ts @@ -1,6 +1,6 @@ import { id } from '@ethersproject/hash' -import { WakuVoting } from '@status-waku-voting/core' -import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' +import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import React, { useEffect, useRef, useState } from 'react' export function useVotingRoomsId(wakuVoting: WakuVoting) { diff --git a/packages/voting-hooks/src/hooks/useWakuVoting.ts b/packages/voting-hooks/src/hooks/useWakuVoting.ts index af04f79..aef9357 100644 --- a/packages/voting-hooks/src/hooks/useWakuVoting.ts +++ b/packages/voting-hooks/src/hooks/useWakuVoting.ts @@ -1,4 +1,4 @@ -import { WakuVoting } from '@status-waku-voting/core' +import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import React, { useEffect, useRef, useState } from 'react' import { Web3Provider } from '@ethersproject/providers'