From 271829abf6c1e835cb1e7b9570ce90d643116942 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:15:57 +1100 Subject: [PATCH 01/18] Rename contracts package --- packages/contracts/package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/classes/WakuVoting.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/contracts/package.json b/packages/contracts/package.json index df53984..055ee28 100644 --- a/packages/contracts/package.json +++ b/packages/contracts/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/contracts", + "name": "@dappconnect/vote-sdk-contracts", "version": "0.0.1", "main": "index.js", "repository": "git@github.com:EthWorks/status-waku-voting.git", diff --git a/packages/core/package.json b/packages/core/package.json index e20e16e..be8b376 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -41,7 +41,7 @@ "typescript": "^4.3.5" }, "dependencies": { - "@status-waku-voting/contracts": "^0.0.1", + "@dappconnect/vote-sdk-contracts": "^0.0.1", "eth-sig-util": "^3.0.1", "ethers": "^5.4.4", "js-waku": "^0.11.0", diff --git a/packages/core/src/classes/WakuVoting.ts b/packages/core/src/classes/WakuVoting.ts index a34c2ce..87d156d 100644 --- a/packages/core/src/classes/WakuVoting.ts +++ b/packages/core/src/classes/WakuVoting.ts @@ -1,4 +1,4 @@ -import { VotingContract } from '@status-waku-voting/contracts/abi' +import { VotingContract } from '@dappconnect/vote-sdk-contracts/abi' import { WakuMessaging } from './WakuMessaging' import { Contract, Wallet, BigNumber, ethers, utils } from 'ethers' import { Waku, WakuMessage } from 'js-waku' From 6066eb71235e2a8382649e35ae2f8b7516792ce3 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:17:35 +1100 Subject: [PATCH 02/18] Newline at EOF --- packages/core/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/README.md b/packages/core/README.md index bd1c3ca..d850e87 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -218,4 +218,4 @@ TimedPollVoteMsg { id: string chainId: number } -``` \ No newline at end of file +``` From 55a8d6adfc1309332bf098bdce2b2d53e7551f35 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:18:34 +1100 Subject: [PATCH 03/18] Rename core package --- packages/core/README.md | 4 ++-- packages/core/package.json | 2 +- packages/polling-components/package.json | 2 +- packages/polling-components/src/components/Poll.tsx | 6 +++--- packages/polling-components/src/components/PollCreation.tsx | 4 ++-- packages/polling-components/src/components/PollList.tsx | 4 ++-- packages/polling-components/src/components/PollResults.tsx | 2 +- packages/polling-example/package.json | 2 +- packages/polling-hooks/package.json | 2 +- packages/polling-hooks/src/hooks/usePollList.ts | 4 ++-- packages/polling-hooks/src/hooks/useWakuPolling.ts | 2 +- packages/react-components/package.json | 2 +- packages/react-components/src/hooks/useTokenBalance.ts | 2 +- packages/voting-components/package.json | 2 +- packages/voting-components/src/components/ProposalInfo.tsx | 2 +- .../src/components/ProposalVoteCard/ProposalVote.tsx | 4 ++-- .../src/components/ProposalVoteCard/VoteChart.tsx | 4 ++-- .../src/components/VoteModal/AmountModal.tsx | 4 ++-- .../src/components/VoteModal/ConfirmModal.tsx | 4 ++-- .../src/components/VoteModal/VoteModal.tsx | 4 ++-- packages/voting-components/src/components/VotePropose.tsx | 2 +- .../voting-components/src/components/VotingRoomCard.tsx | 4 ++-- .../voting-components/src/components/VotingRoomList.tsx | 4 ++-- .../src/components/mobile/NewVotingRoomMobile.tsx | 2 +- .../src/components/mobile/VotingRoomMobile.tsx | 2 +- .../src/components/newVoteModal/NewVotingRoomModal.tsx | 2 +- .../src/components/newVoteModal/TokenAmountScreen.tsx | 2 +- .../src/components/newVoteModal/VotingRoomDetailInput.tsx | 2 +- packages/voting-example/package.json | 2 +- packages/voting-example/src/components/Voting.tsx | 4 ++-- packages/voting-example/src/components/VotingMobile.tsx | 2 +- packages/voting-hooks/package.json | 2 +- packages/voting-hooks/src/hooks/useVotingRoom.ts | 4 ++-- packages/voting-hooks/src/hooks/useVotingRoomsId.ts | 4 ++-- packages/voting-hooks/src/hooks/useWakuVoting.ts | 2 +- 35 files changed, 51 insertions(+), 51 deletions(-) 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' From 401b86347f800d22f8063d1a8b10cd60a77e1c74 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:20:45 +1100 Subject: [PATCH 04/18] Rename examples --- packages/example/package.json | 6 +++--- packages/example/src/index.tsx | 4 ++-- packages/polling-example/package.json | 2 +- packages/voting-example/package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/example/package.json b/packages/example/package.json index 0c6781f..e64f40f 100644 --- a/packages/example/package.json +++ b/packages/example/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/example", + "name": "@dappconnect/vote-poll-sdk-example", "version": "0.1.0", "main": "index.js", "license": "MIT", @@ -15,8 +15,8 @@ "lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'" }, "dependencies": { - "@status-waku-voting/polling-example": "^0.1.0", - "@status-waku-voting/voting-example": "^0.1.0", + "@dappconnect/poll-sdk-example": "^0.1.0", + "@dappconnect/vote-sdk-example": "^0.1.0", "assert": "^2.0.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", diff --git a/packages/example/src/index.tsx b/packages/example/src/index.tsx index 92cb9fd..6dc8424 100644 --- a/packages/example/src/index.tsx +++ b/packages/example/src/index.tsx @@ -1,7 +1,7 @@ import React from 'react' import ReactDOM from 'react-dom' -import { PollingPage } from '@status-waku-voting/polling-example' -import { VotingPage } from '@status-waku-voting/voting-example' +import { PollingPage } from '@dappconnect/poll-sdk-example' +import { VotingPage } from '@dappconnect/vote-sdk-example' import { BrowserRouter } from 'react-router-dom' import { Route, Switch } from 'react-router' diff --git a/packages/polling-example/package.json b/packages/polling-example/package.json index dc57b8d..2ddd0ca 100644 --- a/packages/polling-example/package.json +++ b/packages/polling-example/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/polling-example", + "name": "@dappconnect/poll-sdk-example", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index 33ec9d9..e2ed6f0 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/voting-example", + "name": "@dappconnect/vote-sdk-example", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", From e35f4e69df086b01342f1cc800f24723ba29f66b Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:29:35 +1100 Subject: [PATCH 05/18] Rename poll react components --- packages/polling-components/package.json | 2 +- packages/polling-example/package.json | 2 +- packages/polling-example/src/components/WakuPolling.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/polling-components/package.json b/packages/polling-components/package.json index 87faa59..a6cb855 100644 --- a/packages/polling-components/package.json +++ b/packages/polling-components/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/polling-components", + "name": "@dappconnect/poll-sdk-react-components", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", diff --git a/packages/polling-example/package.json b/packages/polling-example/package.json index 2ddd0ca..5df8a12 100644 --- a/packages/polling-example/package.json +++ b/packages/polling-example/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", - "@status-waku-voting/polling-components": "^0.1.0", + "@dappconnect/poll-sdk-react-components": "^0.1.0", "@status-waku-voting/polling-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", "@usedapp/core": "^0.4.7", diff --git a/packages/polling-example/src/components/WakuPolling.tsx b/packages/polling-example/src/components/WakuPolling.tsx index a5b6a22..e343c74 100644 --- a/packages/polling-example/src/components/WakuPolling.tsx +++ b/packages/polling-example/src/components/WakuPolling.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react' import { useConfig, useEthers } from '@usedapp/core' import styled from 'styled-components' -import { PollList, PollCreation } from '@status-waku-voting/polling-components' +import { PollList, PollCreation } from '@dappconnect/poll-sdk-react-components' import { JsonRpcSigner } from '@ethersproject/providers' import { useWakuPolling } from '@status-waku-voting/polling-hooks' import { Modal, Networks, CreateButton } from '@status-waku-voting/react-components' From a6d03613fda3fa41e110d296ea91be4e326f84d3 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:30:32 +1100 Subject: [PATCH 06/18] Rename poll react hooks --- packages/polling-components/package.json | 2 +- packages/polling-components/src/components/PollList.tsx | 2 +- packages/polling-example/package.json | 2 +- packages/polling-example/src/components/WakuPolling.tsx | 2 +- packages/polling-hooks/package.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/polling-components/package.json b/packages/polling-components/package.json index a6cb855..9a59ebb 100644 --- a/packages/polling-components/package.json +++ b/packages/polling-components/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", - "@status-waku-voting/polling-hooks": "^0.1.0", + "@dappconnect/poll-sdk-react-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", "ethers": "^5.4.4", "react": "^17.0.2", diff --git a/packages/polling-components/src/components/PollList.tsx b/packages/polling-components/src/components/PollList.tsx index bc33f2c..21d7b9a 100644 --- a/packages/polling-components/src/components/PollList.tsx +++ b/packages/polling-components/src/components/PollList.tsx @@ -4,7 +4,7 @@ import React, { useEffect, useState } from 'react' import { Poll } from './Poll' import styled from 'styled-components' import { Theme } from '@status-waku-voting/react-components' -import { usePollList } from '@status-waku-voting/polling-hooks' +import { usePollList } from '@dappconnect/poll-sdk-react-hooks' type PollListProps = { theme: Theme wakuPolling: WakuPolling | undefined diff --git a/packages/polling-example/package.json b/packages/polling-example/package.json index 5df8a12..8cc2148 100644 --- a/packages/polling-example/package.json +++ b/packages/polling-example/package.json @@ -32,7 +32,7 @@ "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@dappconnect/poll-sdk-react-components": "^0.1.0", - "@status-waku-voting/polling-hooks": "^0.1.0", + "@dappconnect/poll-sdk-react-hooks": "^0.1.0", "@status-waku-voting/react-components": "^0.1.0", "@usedapp/core": "^0.4.7", "ethers": "^5.4.4", diff --git a/packages/polling-example/src/components/WakuPolling.tsx b/packages/polling-example/src/components/WakuPolling.tsx index e343c74..f5ca1d1 100644 --- a/packages/polling-example/src/components/WakuPolling.tsx +++ b/packages/polling-example/src/components/WakuPolling.tsx @@ -4,7 +4,7 @@ import { useConfig, useEthers } from '@usedapp/core' import styled from 'styled-components' import { PollList, PollCreation } from '@dappconnect/poll-sdk-react-components' import { JsonRpcSigner } from '@ethersproject/providers' -import { useWakuPolling } from '@status-waku-voting/polling-hooks' +import { useWakuPolling } from '@dappconnect/poll-sdk-react-hooks' import { Modal, Networks, CreateButton } from '@status-waku-voting/react-components' import { Theme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' diff --git a/packages/polling-hooks/package.json b/packages/polling-hooks/package.json index 87b81df..8354730 100644 --- a/packages/polling-hooks/package.json +++ b/packages/polling-hooks/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/polling-hooks", + "name": "@dappconnect/poll-sdk-react-hooks", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", From f6adbecf57eac8978f7b28d296771b400fcb9701 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:39:00 +1100 Subject: [PATCH 07/18] Rename common react hooks --- packages/polling-components/package.json | 2 +- packages/polling-components/src/components/Poll.tsx | 4 ++-- packages/polling-components/src/components/PollCreation.tsx | 2 +- packages/polling-components/src/components/PollList.tsx | 2 +- packages/polling-components/src/components/PollResults.tsx | 2 +- packages/polling-example/package.json | 2 +- packages/polling-example/src/components/WakuPolling.tsx | 4 ++-- packages/polling-example/src/index.tsx | 4 ++-- packages/react-components/package.json | 2 +- packages/voting-components/package.json | 2 +- packages/voting-components/src/components/Buttons.tsx | 2 +- .../voting-components/src/components/NotificationItem.tsx | 4 ++-- .../src/components/ProposalVoteCard/VoteChart.tsx | 2 +- .../src/components/VoteModal/VoteModal.tsx | 2 +- .../voting-components/src/components/VotingRoomCard.tsx | 4 ++-- .../voting-components/src/components/VotingRoomList.tsx | 2 +- .../src/components/VotingRoomListEmpty.tsx | 2 +- .../src/components/VotingRoomListHeader.tsx | 4 ++-- .../src/components/newVoteModal/NewVotingRoomModal.tsx | 2 +- .../src/components/newVoteModal/VotingRoomDetailInput.tsx | 2 +- packages/voting-example/package.json | 2 +- packages/voting-example/src/components/Voting.tsx | 6 +++--- packages/voting-example/src/components/VotingMobile.tsx | 2 +- packages/voting-example/src/index.tsx | 4 ++-- 24 files changed, 33 insertions(+), 33 deletions(-) diff --git a/packages/polling-components/package.json b/packages/polling-components/package.json index 9a59ebb..fba5e65 100644 --- a/packages/polling-components/package.json +++ b/packages/polling-components/package.json @@ -34,7 +34,7 @@ "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@dappconnect/poll-sdk-react-hooks": "^0.1.0", - "@status-waku-voting/react-components": "^0.1.0", + "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "ethers": "^5.4.4", "react": "^17.0.2", "styled-components": "^5.3.0" diff --git a/packages/polling-components/src/components/Poll.tsx b/packages/polling-components/src/components/Poll.tsx index 5b470f9..3ad6c79 100644 --- a/packages/polling-components/src/components/Poll.tsx +++ b/packages/polling-components/src/components/Poll.tsx @@ -4,9 +4,9 @@ import { BigNumber } from 'ethers' import React, { useEffect, useState } from 'react' 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 { RadioGroup, SmallButton, Theme } from '@dappconnect/vote-poll-sdk-react-components' import { PollResults } from './PollResults' -import { Modal } from '@status-waku-voting/react-components' +import { Modal } from '@dappconnect/vote-poll-sdk-react-components' type PollProps = { theme: Theme diff --git a/packages/polling-components/src/components/PollCreation.tsx b/packages/polling-components/src/components/PollCreation.tsx index 12add8e..e2d822f 100644 --- a/packages/polling-components/src/components/PollCreation.tsx +++ b/packages/polling-components/src/components/PollCreation.tsx @@ -2,7 +2,7 @@ import React, { ReactNode, useState } from 'react' import styled from 'styled-components' 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' +import { Input, addIcon, SmallButton, Modal, Theme } from '@dappconnect/vote-poll-sdk-react-components' function getLocaleIsoTime(dateTime: Date) { const MS_PER_MINUTE = 60000 diff --git a/packages/polling-components/src/components/PollList.tsx b/packages/polling-components/src/components/PollList.tsx index 21d7b9a..b8f5337 100644 --- a/packages/polling-components/src/components/PollList.tsx +++ b/packages/polling-components/src/components/PollList.tsx @@ -3,7 +3,7 @@ import { DetailedTimedPoll } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/ import React, { useEffect, useState } from 'react' import { Poll } from './Poll' import styled from 'styled-components' -import { Theme } from '@status-waku-voting/react-components' +import { Theme } from '@dappconnect/vote-poll-sdk-react-components' import { usePollList } from '@dappconnect/poll-sdk-react-hooks' type PollListProps = { theme: Theme diff --git a/packages/polling-components/src/components/PollResults.tsx b/packages/polling-components/src/components/PollResults.tsx index 982e18b..87849c8 100644 --- a/packages/polling-components/src/components/PollResults.tsx +++ b/packages/polling-components/src/components/PollResults.tsx @@ -1,7 +1,7 @@ import React from 'react' 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' +import { colorRouletteGenerator, checkCircleIcon } from '@dappconnect/vote-poll-sdk-react-components' type PollResultsProps = { poll: DetailedTimedPoll diff --git a/packages/polling-example/package.json b/packages/polling-example/package.json index 8cc2148..f0dc332 100644 --- a/packages/polling-example/package.json +++ b/packages/polling-example/package.json @@ -33,7 +33,7 @@ "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@dappconnect/poll-sdk-react-components": "^0.1.0", "@dappconnect/poll-sdk-react-hooks": "^0.1.0", - "@status-waku-voting/react-components": "^0.1.0", + "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "@usedapp/core": "^0.4.7", "ethers": "^5.4.4", "react": "^17.0.2", diff --git a/packages/polling-example/src/components/WakuPolling.tsx b/packages/polling-example/src/components/WakuPolling.tsx index f5ca1d1..5e1907b 100644 --- a/packages/polling-example/src/components/WakuPolling.tsx +++ b/packages/polling-example/src/components/WakuPolling.tsx @@ -5,8 +5,8 @@ import styled from 'styled-components' import { PollList, PollCreation } from '@dappconnect/poll-sdk-react-components' import { JsonRpcSigner } from '@ethersproject/providers' import { useWakuPolling } from '@dappconnect/poll-sdk-react-hooks' -import { Modal, Networks, CreateButton } from '@status-waku-voting/react-components' -import { Theme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' +import { Modal, Networks, CreateButton } from '@dappconnect/vote-poll-sdk-react-components' +import { Theme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' type WakuPollingProps = { appName: string diff --git a/packages/polling-example/src/index.tsx b/packages/polling-example/src/index.tsx index aa005db..fd55ec7 100644 --- a/packages/polling-example/src/index.tsx +++ b/packages/polling-example/src/index.tsx @@ -3,10 +3,10 @@ import styled from 'styled-components' import { DAppProvider, ChainId, useEthers } from '@usedapp/core' import { DEFAULT_CONFIG } from '@usedapp/core/dist/cjs/src/model/config/default' import { WakuPolling } from './components/WakuPolling' -import { TopBar, GlobalStyle } from '@status-waku-voting/react-components' +import { TopBar, GlobalStyle } from '@dappconnect/vote-poll-sdk-react-components' import pollingIcon from './assets/images/pollingIcon.png' import { JsonRpcSigner } from '@ethersproject/providers' -import { orangeTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' +import { orangeTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' const config = { readOnlyChainId: ChainId.Ropsten, diff --git a/packages/react-components/package.json b/packages/react-components/package.json index de0dad6..200d163 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/react-components", + "name": "@dappconnect/vote-poll-sdk-react-components", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", "types": "dist/esm/src/index.d.ts", diff --git a/packages/voting-components/package.json b/packages/voting-components/package.json index 04b6f01..be2a90e 100644 --- a/packages/voting-components/package.json +++ b/packages/voting-components/package.json @@ -34,7 +34,7 @@ "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@status-waku-voting/voting-hooks": "^0.1.0", - "@status-waku-voting/react-components": "^0.1.0", + "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "ethers": "^5.4.4", "humanize-duration": "^3.27.0", "react": "^17.0.2", diff --git a/packages/voting-components/src/components/Buttons.tsx b/packages/voting-components/src/components/Buttons.tsx index de0bb12..5b29967 100644 --- a/packages/voting-components/src/components/Buttons.tsx +++ b/packages/voting-components/src/components/Buttons.tsx @@ -1,4 +1,4 @@ -import { Button } from '@status-waku-voting/react-components' +import { Button } from '@dappconnect/vote-poll-sdk-react-components' import styled from 'styled-components' export const Btn = styled(Button)` diff --git a/packages/voting-components/src/components/NotificationItem.tsx b/packages/voting-components/src/components/NotificationItem.tsx index f8852d6..0875dce 100644 --- a/packages/voting-components/src/components/NotificationItem.tsx +++ b/packages/voting-components/src/components/NotificationItem.tsx @@ -1,6 +1,6 @@ import React, { useState } from 'react' -import { blueTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' -import { CloseButton } from '@status-waku-voting/react-components/dist/esm/src/components/misc/Buttons' +import { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' +import { CloseButton } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/components/misc/Buttons' import styled from 'styled-components' import { NotificationLink } from './ViewLink' diff --git a/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx b/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx index e8b125c..0c82198 100644 --- a/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx +++ b/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx @@ -8,7 +8,7 @@ import crossIcon from '../../assets/svg/cross.svg' 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 { useMobileVersion } from '@dappconnect/vote-poll-sdk-react-components' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' diff --git a/packages/voting-components/src/components/VoteModal/VoteModal.tsx b/packages/voting-components/src/components/VoteModal/VoteModal.tsx index 24ba3c5..b55df4c 100644 --- a/packages/voting-components/src/components/VoteModal/VoteModal.tsx +++ b/packages/voting-components/src/components/VoteModal/VoteModal.tsx @@ -1,6 +1,6 @@ import React, { useEffect, useMemo, useState } from 'react' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' -import { Modal, Theme } from '@status-waku-voting/react-components' +import { Modal, Theme } from '@dappconnect/vote-poll-sdk-react-components' import { AmountModal } from './AmountModal' import { ConfirmModal } from './ConfirmModal' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' diff --git a/packages/voting-components/src/components/VotingRoomCard.tsx b/packages/voting-components/src/components/VotingRoomCard.tsx index f668c0e..05de115 100644 --- a/packages/voting-components/src/components/VotingRoomCard.tsx +++ b/packages/voting-components/src/components/VotingRoomCard.tsx @@ -1,12 +1,12 @@ import React, { ReactElement, useCallback, useState, useRef, useMemo } from 'react' import styled from 'styled-components' -import { Theme } from '@status-waku-voting/react-components' +import { Theme } from '@dappconnect/vote-poll-sdk-react-components' import { ProposalInfo } from './ProposalInfo' import { ProposalVote } from './ProposalVoteCard/ProposalVote' 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 { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' interface VotingRoomCardProps { diff --git a/packages/voting-components/src/components/VotingRoomList.tsx b/packages/voting-components/src/components/VotingRoomList.tsx index 0c3233d..243d6f2 100644 --- a/packages/voting-components/src/components/VotingRoomList.tsx +++ b/packages/voting-components/src/components/VotingRoomList.tsx @@ -1,6 +1,6 @@ import React from 'react' import styled from 'styled-components' -import { Theme } from '@status-waku-voting/react-components' +import { Theme } from '@dappconnect/vote-poll-sdk-react-components' import { VotingRoomCard } from './VotingRoomCard' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' diff --git a/packages/voting-components/src/components/VotingRoomListEmpty.tsx b/packages/voting-components/src/components/VotingRoomListEmpty.tsx index f8e8d83..b8b93d5 100644 --- a/packages/voting-components/src/components/VotingRoomListEmpty.tsx +++ b/packages/voting-components/src/components/VotingRoomListEmpty.tsx @@ -1,6 +1,6 @@ import React from 'react' import styled from 'styled-components' -import { CreateButton, Theme } from '@status-waku-voting/react-components' +import { CreateButton, Theme } from '@dappconnect/vote-poll-sdk-react-components' type VotingRoomListEmptyProps = { theme: Theme diff --git a/packages/voting-components/src/components/VotingRoomListHeader.tsx b/packages/voting-components/src/components/VotingRoomListHeader.tsx index dd85565..1a34ef4 100644 --- a/packages/voting-components/src/components/VotingRoomListHeader.tsx +++ b/packages/voting-components/src/components/VotingRoomListHeader.tsx @@ -1,7 +1,7 @@ import React from 'react' import styled from 'styled-components' -import { CreateButton } from '@status-waku-voting/react-components' -import { Theme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' +import { CreateButton } from '@dappconnect/vote-poll-sdk-react-components' +import { Theme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' type VotingRoomListHeaderProps = { theme: Theme diff --git a/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx b/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx index db6407e..621e9b3 100644 --- a/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx +++ b/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx @@ -1,5 +1,5 @@ import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' -import { Modal, Theme } from '@status-waku-voting/react-components' +import { Modal, Theme } from '@dappconnect/vote-poll-sdk-react-components' import React, { useEffect, useState } from 'react' import { VotingRoomDetailInput } from './VotingRoomDetailInput' import { TokenAmountScreen } from './TokenAmountScreen' diff --git a/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx b/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx index e7299fe..0840226 100644 --- a/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx +++ b/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx @@ -2,7 +2,7 @@ import React, { useMemo } from 'react' 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 { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' interface VotingRoomDetailInputProps { diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index e2ed6f0..8d6707e 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -35,7 +35,7 @@ "@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", + "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "@usedapp/core": "^0.4.7", "ethers": "^5.4.4", "react": "^17.0.2", diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/voting-example/src/components/Voting.tsx index 6f993cb..2b824f7 100644 --- a/packages/voting-example/src/components/Voting.tsx +++ b/packages/voting-example/src/components/Voting.tsx @@ -6,11 +6,11 @@ import { VotingRoomListEmpty, NewVotingRoomModal, } from '@status-waku-voting/voting-components' -import { blueTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' +import { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' -import { useTokenBalance } from '@status-waku-voting/react-components' +import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components' import { useEthers } from '@usedapp/core' -import { Modal, Networks, useMobileVersion, Theme } from '@status-waku-voting/react-components' +import { Modal, Networks, useMobileVersion, Theme } from '@dappconnect/vote-poll-sdk-react-components' import { useVotingRoomsId } from '@status-waku-voting/voting-hooks' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import { useHistory } from 'react-router' diff --git a/packages/voting-example/src/components/VotingMobile.tsx b/packages/voting-example/src/components/VotingMobile.tsx index 2ec45bb..d76d8a3 100644 --- a/packages/voting-example/src/components/VotingMobile.tsx +++ b/packages/voting-example/src/components/VotingMobile.tsx @@ -5,7 +5,7 @@ import styled from 'styled-components' import { VotingRoomMobile, NewVotingRoomMobile } from '@status-waku-voting/voting-components' import { Voting } from './Voting' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' -import { useTokenBalance } from '@status-waku-voting/react-components' +import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components' type VotingRoomCreationProps = { tokenBalance: number diff --git a/packages/voting-example/src/index.tsx b/packages/voting-example/src/index.tsx index d7b3b10..04324b8 100644 --- a/packages/voting-example/src/index.tsx +++ b/packages/voting-example/src/index.tsx @@ -2,10 +2,10 @@ import React, { useRef } from 'react' import { useWakuVoting } from '@status-waku-voting/voting-hooks' import { VotingMobile } from './components/VotingMobile' import { Voting } from './components/Voting' -import { TopBar, GlobalStyle, useMobileVersion } from '@status-waku-voting/react-components' +import { TopBar, GlobalStyle, useMobileVersion } from '@dappconnect/vote-poll-sdk-react-components' import votingIcon from './assets/images/voting.png' import styled from 'styled-components' -import { blueTheme } from '@status-waku-voting/react-components/dist/esm/src/style/themes' +import { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' import { DAppProvider, ChainId, useEthers, useConfig } from '@usedapp/core' import { DEFAULT_CONFIG } from '@usedapp/core/dist/cjs/src/model/config/default' From 59b56a0650a78d89e5538d13802876dc14d93413 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:53:48 +1100 Subject: [PATCH 08/18] Rename vote react components --- packages/voting-components/package.json | 2 +- packages/voting-example/package.json | 2 +- packages/voting-example/src/components/Voting.tsx | 2 +- packages/voting-example/src/components/VotingMobile.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/voting-components/package.json b/packages/voting-components/package.json index be2a90e..de7d79c 100644 --- a/packages/voting-components/package.json +++ b/packages/voting-components/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/voting-components", + "name": "@dappconnect/vote-sdk-react-components", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index 8d6707e..6e44773 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", - "@status-waku-voting/voting-components": "^0.1.0", + "@dappconnect/vote-sdk-react-components": "^0.1.0", "@status-waku-voting/voting-hooks": "^0.1.0", "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "@usedapp/core": "^0.4.7", diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/voting-example/src/components/Voting.tsx index 2b824f7..b46245c 100644 --- a/packages/voting-example/src/components/Voting.tsx +++ b/packages/voting-example/src/components/Voting.tsx @@ -5,7 +5,7 @@ import { VotingRoomList, VotingRoomListEmpty, NewVotingRoomModal, -} from '@status-waku-voting/voting-components' +} from '@dappconnect/vote-sdk-react-components' import { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components' diff --git a/packages/voting-example/src/components/VotingMobile.tsx b/packages/voting-example/src/components/VotingMobile.tsx index d76d8a3..68030a7 100644 --- a/packages/voting-example/src/components/VotingMobile.tsx +++ b/packages/voting-example/src/components/VotingMobile.tsx @@ -2,7 +2,7 @@ import React from 'react' import { Redirect, Route, Switch, useHistory } from 'react-router' import { BrowserRouter } from 'react-router-dom' import styled from 'styled-components' -import { VotingRoomMobile, NewVotingRoomMobile } from '@status-waku-voting/voting-components' +import { VotingRoomMobile, NewVotingRoomMobile } from '@dappconnect/vote-sdk-react-components' import { Voting } from './Voting' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components' From 9fc76d0f062bbeb0b44b4f094169eaffc60b8bfb Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:55:33 +1100 Subject: [PATCH 09/18] Rename vote react hooks --- packages/voting-components/package.json | 2 +- packages/voting-components/src/components/VotingRoomCard.tsx | 2 +- .../src/components/mobile/VotingRoomMobile.tsx | 2 +- packages/voting-example/package.json | 2 +- packages/voting-example/src/components/Voting.tsx | 2 +- packages/voting-example/src/index.tsx | 2 +- packages/voting-hooks/package.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/voting-components/package.json b/packages/voting-components/package.json index de7d79c..6a3bb71 100644 --- a/packages/voting-components/package.json +++ b/packages/voting-components/package.json @@ -33,7 +33,7 @@ }, "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", - "@status-waku-voting/voting-hooks": "^0.1.0", + "@dappconnect/vote-sdk-react-hooks": "^0.1.0", "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "ethers": "^5.4.4", "humanize-duration": "^3.27.0", diff --git a/packages/voting-components/src/components/VotingRoomCard.tsx b/packages/voting-components/src/components/VotingRoomCard.tsx index 05de115..5a6a9d3 100644 --- a/packages/voting-components/src/components/VotingRoomCard.tsx +++ b/packages/voting-components/src/components/VotingRoomCard.tsx @@ -4,7 +4,7 @@ import { Theme } from '@dappconnect/vote-poll-sdk-react-components' import { ProposalInfo } from './ProposalInfo' import { ProposalVote } from './ProposalVoteCard/ProposalVote' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' -import { useVotingRoom } from '@status-waku-voting/voting-hooks' +import { useVotingRoom } from '@dappconnect/vote-sdk-react-hooks' import { VoteModal, VoteModalProps } from './VoteModal/VoteModal' import { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' diff --git a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx index 060c67a..998d968 100644 --- a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx +++ b/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx @@ -7,7 +7,7 @@ import { VoteChart } from '../ProposalVoteCard/VoteChart' import { ProposalInfo } from '../ProposalInfo' import { VotePropose } from '../VotePropose' import { VotesBtns } from '../ProposalVoteCard/ProposalVote' -import { useVotingRoom } from '@status-waku-voting/voting-hooks' +import { useVotingRoom } from '@dappconnect/vote-sdk-react-hooks' import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { BigNumber } from 'ethers' interface VotingRoomMobileProps { diff --git a/packages/voting-example/package.json b/packages/voting-example/package.json index 6e44773..c05d03b 100644 --- a/packages/voting-example/package.json +++ b/packages/voting-example/package.json @@ -34,7 +34,7 @@ "dependencies": { "@dappconnect/vote-poll-sdk-core": "^0.1.0", "@dappconnect/vote-sdk-react-components": "^0.1.0", - "@status-waku-voting/voting-hooks": "^0.1.0", + "@dappconnect/vote-sdk-react-hooks": "^0.1.0", "@dappconnect/vote-poll-sdk-react-components": "^0.1.0", "@usedapp/core": "^0.4.7", "ethers": "^5.4.4", diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/voting-example/src/components/Voting.tsx index b46245c..2a94d86 100644 --- a/packages/voting-example/src/components/Voting.tsx +++ b/packages/voting-example/src/components/Voting.tsx @@ -11,7 +11,7 @@ import { WakuVoting } from '@dappconnect/vote-poll-sdk-core' import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components' import { useEthers } from '@usedapp/core' import { Modal, Networks, useMobileVersion, Theme } from '@dappconnect/vote-poll-sdk-react-components' -import { useVotingRoomsId } from '@status-waku-voting/voting-hooks' +import { useVotingRoomsId } from '@dappconnect/vote-sdk-react-hooks' import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType' import { useHistory } from 'react-router' diff --git a/packages/voting-example/src/index.tsx b/packages/voting-example/src/index.tsx index 04324b8..53e8bbf 100644 --- a/packages/voting-example/src/index.tsx +++ b/packages/voting-example/src/index.tsx @@ -1,5 +1,5 @@ import React, { useRef } from 'react' -import { useWakuVoting } from '@status-waku-voting/voting-hooks' +import { useWakuVoting } from '@dappconnect/vote-sdk-react-hooks' import { VotingMobile } from './components/VotingMobile' import { Voting } from './components/Voting' import { TopBar, GlobalStyle, useMobileVersion } from '@dappconnect/vote-poll-sdk-react-components' diff --git a/packages/voting-hooks/package.json b/packages/voting-hooks/package.json index f0a4845..1e2f5f7 100644 --- a/packages/voting-hooks/package.json +++ b/packages/voting-hooks/package.json @@ -1,5 +1,5 @@ { - "name": "@status-waku-voting/voting-hooks", + "name": "@dappconnect/vote-sdk-react-hooks", "version": "0.1.0", "main": "dist/cjs/src/index.js", "module": "dist/esm/src/index.js", From 86c5616ac1b2f72b23121b4a53189ab2285747a4 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 12:56:54 +1100 Subject: [PATCH 10/18] Rename meta package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b4aac48..46f1fef 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "status-waku-voting", + "name": "@dappconnect/vote-poll-sdk", "private": true, "license": "MIT", "engines": { From 234baabe414578a95c0690961e532aa12efbd111 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:13:18 +1100 Subject: [PATCH 11/18] Add blob for DappConnect Poll --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2f629f4..88af4ba 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# DappConnect Voting & Polling SDKs +# DappConnect Vote & Poll SDKs A set of DappConnect SDKs to enable gas efficient voting and gasless polling over Waku -## DappConnect Voting SDK +## DappConnect Vote SDK -The DappConnect voting SDK allows you to leverage Waku to save gas fees for most voters. +The DappConnect Vote SDK allows you to leverage Waku to save gas fees for most voters. It leverages Waku, a decentralized communication network, to broadcast and aggregates votes. Most token holders will not need to spend gas to vote. @@ -151,6 +151,8 @@ A vote may become invalid between reception over Waku and submission to the smar - The voter has transferred a number of token out of their account, making the account balance lesser than the vote weight, - A vote for this voter has already been submitted to the smart contract (whether or not it has the same value). -## DappConnect Polling SDK +## DappConnect Poll SDK -TODO \ No newline at end of file +The DappConnect Poll SDK allows users to create, answer and view polls in a decentralized, censorship-resistant manner. + +The polls are published over Waku, there is no interaction with any blockchain, removing gas costs. From 49e56a279a488d01b5731f7d7f41070446f83406 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:17:58 +1100 Subject: [PATCH 12/18] Move polling components to poll-react-components --- .../{polling-components => poll-react-components}/.eslintrc.json | 0 .../{polling-components => poll-react-components}/.mocharc.json | 0 packages/{polling-components => poll-react-components}/README.md | 0 .../{polling-components => poll-react-components}/package.json | 0 .../prettier.config.js | 0 .../src/components/Poll.tsx | 0 .../src/components/PollCreation.tsx | 0 .../src/components/PollList.tsx | 0 .../src/components/PollResults.tsx | 0 .../{polling-components => poll-react-components}/src/index.ts | 0 .../test/index.test.ts | 0 .../{polling-components => poll-react-components}/test/setup.ts | 0 .../{polling-components => poll-react-components}/tsconfig.json | 0 13 files changed, 0 insertions(+), 0 deletions(-) rename packages/{polling-components => poll-react-components}/.eslintrc.json (100%) rename packages/{polling-components => poll-react-components}/.mocharc.json (100%) rename packages/{polling-components => poll-react-components}/README.md (100%) rename packages/{polling-components => poll-react-components}/package.json (100%) rename packages/{polling-components => poll-react-components}/prettier.config.js (100%) rename packages/{polling-components => poll-react-components}/src/components/Poll.tsx (100%) rename packages/{polling-components => poll-react-components}/src/components/PollCreation.tsx (100%) rename packages/{polling-components => poll-react-components}/src/components/PollList.tsx (100%) rename packages/{polling-components => poll-react-components}/src/components/PollResults.tsx (100%) rename packages/{polling-components => poll-react-components}/src/index.ts (100%) rename packages/{polling-components => poll-react-components}/test/index.test.ts (100%) rename packages/{polling-components => poll-react-components}/test/setup.ts (100%) rename packages/{polling-components => poll-react-components}/tsconfig.json (100%) diff --git a/packages/polling-components/.eslintrc.json b/packages/poll-react-components/.eslintrc.json similarity index 100% rename from packages/polling-components/.eslintrc.json rename to packages/poll-react-components/.eslintrc.json diff --git a/packages/polling-components/.mocharc.json b/packages/poll-react-components/.mocharc.json similarity index 100% rename from packages/polling-components/.mocharc.json rename to packages/poll-react-components/.mocharc.json diff --git a/packages/polling-components/README.md b/packages/poll-react-components/README.md similarity index 100% rename from packages/polling-components/README.md rename to packages/poll-react-components/README.md diff --git a/packages/polling-components/package.json b/packages/poll-react-components/package.json similarity index 100% rename from packages/polling-components/package.json rename to packages/poll-react-components/package.json diff --git a/packages/polling-components/prettier.config.js b/packages/poll-react-components/prettier.config.js similarity index 100% rename from packages/polling-components/prettier.config.js rename to packages/poll-react-components/prettier.config.js diff --git a/packages/polling-components/src/components/Poll.tsx b/packages/poll-react-components/src/components/Poll.tsx similarity index 100% rename from packages/polling-components/src/components/Poll.tsx rename to packages/poll-react-components/src/components/Poll.tsx diff --git a/packages/polling-components/src/components/PollCreation.tsx b/packages/poll-react-components/src/components/PollCreation.tsx similarity index 100% rename from packages/polling-components/src/components/PollCreation.tsx rename to packages/poll-react-components/src/components/PollCreation.tsx diff --git a/packages/polling-components/src/components/PollList.tsx b/packages/poll-react-components/src/components/PollList.tsx similarity index 100% rename from packages/polling-components/src/components/PollList.tsx rename to packages/poll-react-components/src/components/PollList.tsx diff --git a/packages/polling-components/src/components/PollResults.tsx b/packages/poll-react-components/src/components/PollResults.tsx similarity index 100% rename from packages/polling-components/src/components/PollResults.tsx rename to packages/poll-react-components/src/components/PollResults.tsx diff --git a/packages/polling-components/src/index.ts b/packages/poll-react-components/src/index.ts similarity index 100% rename from packages/polling-components/src/index.ts rename to packages/poll-react-components/src/index.ts diff --git a/packages/polling-components/test/index.test.ts b/packages/poll-react-components/test/index.test.ts similarity index 100% rename from packages/polling-components/test/index.test.ts rename to packages/poll-react-components/test/index.test.ts diff --git a/packages/polling-components/test/setup.ts b/packages/poll-react-components/test/setup.ts similarity index 100% rename from packages/polling-components/test/setup.ts rename to packages/poll-react-components/test/setup.ts diff --git a/packages/polling-components/tsconfig.json b/packages/poll-react-components/tsconfig.json similarity index 100% rename from packages/polling-components/tsconfig.json rename to packages/poll-react-components/tsconfig.json From 1723ee361477414cc61b87a7a597ed7f7b953b0f Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:18:57 +1100 Subject: [PATCH 13/18] Rename polling-example to poll-example --- .../.eslintrc.json | 0 .../{polling-example => poll-example}/.mocharc.json | 0 .../{polling-example => poll-example}/README.md | 0 .../{polling-example => poll-example}/package.json | 0 .../prettier.config.js | 0 .../src/assets/assets.d.ts | 0 .../src/assets/images/pollingIcon.png | Bin .../src/components/WakuPolling.tsx | 0 .../{polling-example => poll-example}/src/index.tsx | 0 .../test/index.test.ts | 0 .../{polling-example => poll-example}/test/setup.ts | 0 .../{polling-example => poll-example}/tsconfig.json | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename packages/{polling-example => poll-example}/.eslintrc.json (100%) rename packages/{polling-example => poll-example}/.mocharc.json (100%) rename packages/{polling-example => poll-example}/README.md (100%) rename packages/{polling-example => poll-example}/package.json (100%) rename packages/{polling-example => poll-example}/prettier.config.js (100%) rename packages/{polling-example => poll-example}/src/assets/assets.d.ts (100%) rename packages/{polling-example => poll-example}/src/assets/images/pollingIcon.png (100%) rename packages/{polling-example => poll-example}/src/components/WakuPolling.tsx (100%) rename packages/{polling-example => poll-example}/src/index.tsx (100%) rename packages/{polling-example => poll-example}/test/index.test.ts (100%) rename packages/{polling-example => poll-example}/test/setup.ts (100%) rename packages/{polling-example => poll-example}/tsconfig.json (100%) diff --git a/packages/polling-example/.eslintrc.json b/packages/poll-example/.eslintrc.json similarity index 100% rename from packages/polling-example/.eslintrc.json rename to packages/poll-example/.eslintrc.json diff --git a/packages/polling-example/.mocharc.json b/packages/poll-example/.mocharc.json similarity index 100% rename from packages/polling-example/.mocharc.json rename to packages/poll-example/.mocharc.json diff --git a/packages/polling-example/README.md b/packages/poll-example/README.md similarity index 100% rename from packages/polling-example/README.md rename to packages/poll-example/README.md diff --git a/packages/polling-example/package.json b/packages/poll-example/package.json similarity index 100% rename from packages/polling-example/package.json rename to packages/poll-example/package.json diff --git a/packages/polling-example/prettier.config.js b/packages/poll-example/prettier.config.js similarity index 100% rename from packages/polling-example/prettier.config.js rename to packages/poll-example/prettier.config.js diff --git a/packages/polling-example/src/assets/assets.d.ts b/packages/poll-example/src/assets/assets.d.ts similarity index 100% rename from packages/polling-example/src/assets/assets.d.ts rename to packages/poll-example/src/assets/assets.d.ts diff --git a/packages/polling-example/src/assets/images/pollingIcon.png b/packages/poll-example/src/assets/images/pollingIcon.png similarity index 100% rename from packages/polling-example/src/assets/images/pollingIcon.png rename to packages/poll-example/src/assets/images/pollingIcon.png diff --git a/packages/polling-example/src/components/WakuPolling.tsx b/packages/poll-example/src/components/WakuPolling.tsx similarity index 100% rename from packages/polling-example/src/components/WakuPolling.tsx rename to packages/poll-example/src/components/WakuPolling.tsx diff --git a/packages/polling-example/src/index.tsx b/packages/poll-example/src/index.tsx similarity index 100% rename from packages/polling-example/src/index.tsx rename to packages/poll-example/src/index.tsx diff --git a/packages/polling-example/test/index.test.ts b/packages/poll-example/test/index.test.ts similarity index 100% rename from packages/polling-example/test/index.test.ts rename to packages/poll-example/test/index.test.ts diff --git a/packages/polling-example/test/setup.ts b/packages/poll-example/test/setup.ts similarity index 100% rename from packages/polling-example/test/setup.ts rename to packages/poll-example/test/setup.ts diff --git a/packages/polling-example/tsconfig.json b/packages/poll-example/tsconfig.json similarity index 100% rename from packages/polling-example/tsconfig.json rename to packages/poll-example/tsconfig.json From e6378115016a6faac90468ac9cd118a0dee96f28 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:19:23 +1100 Subject: [PATCH 14/18] Rename polling-hooks to poll-react-hooks --- packages/{polling-hooks => poll-react-hooks}/.eslintrc.json | 0 packages/{polling-hooks => poll-react-hooks}/.mocharc.json | 0 packages/{polling-hooks => poll-react-hooks}/README.md | 0 packages/{polling-hooks => poll-react-hooks}/package.json | 0 packages/{polling-hooks => poll-react-hooks}/prettier.config.js | 0 .../{polling-hooks => poll-react-hooks}/src/hooks/usePollList.ts | 0 .../src/hooks/useWakuPolling.ts | 0 packages/{polling-hooks => poll-react-hooks}/src/index.ts | 0 packages/{polling-hooks => poll-react-hooks}/test/index.test.ts | 0 packages/{polling-hooks => poll-react-hooks}/test/setup.ts | 0 packages/{polling-hooks => poll-react-hooks}/tsconfig.json | 0 11 files changed, 0 insertions(+), 0 deletions(-) rename packages/{polling-hooks => poll-react-hooks}/.eslintrc.json (100%) rename packages/{polling-hooks => poll-react-hooks}/.mocharc.json (100%) rename packages/{polling-hooks => poll-react-hooks}/README.md (100%) rename packages/{polling-hooks => poll-react-hooks}/package.json (100%) rename packages/{polling-hooks => poll-react-hooks}/prettier.config.js (100%) rename packages/{polling-hooks => poll-react-hooks}/src/hooks/usePollList.ts (100%) rename packages/{polling-hooks => poll-react-hooks}/src/hooks/useWakuPolling.ts (100%) rename packages/{polling-hooks => poll-react-hooks}/src/index.ts (100%) rename packages/{polling-hooks => poll-react-hooks}/test/index.test.ts (100%) rename packages/{polling-hooks => poll-react-hooks}/test/setup.ts (100%) rename packages/{polling-hooks => poll-react-hooks}/tsconfig.json (100%) diff --git a/packages/polling-hooks/.eslintrc.json b/packages/poll-react-hooks/.eslintrc.json similarity index 100% rename from packages/polling-hooks/.eslintrc.json rename to packages/poll-react-hooks/.eslintrc.json diff --git a/packages/polling-hooks/.mocharc.json b/packages/poll-react-hooks/.mocharc.json similarity index 100% rename from packages/polling-hooks/.mocharc.json rename to packages/poll-react-hooks/.mocharc.json diff --git a/packages/polling-hooks/README.md b/packages/poll-react-hooks/README.md similarity index 100% rename from packages/polling-hooks/README.md rename to packages/poll-react-hooks/README.md diff --git a/packages/polling-hooks/package.json b/packages/poll-react-hooks/package.json similarity index 100% rename from packages/polling-hooks/package.json rename to packages/poll-react-hooks/package.json diff --git a/packages/polling-hooks/prettier.config.js b/packages/poll-react-hooks/prettier.config.js similarity index 100% rename from packages/polling-hooks/prettier.config.js rename to packages/poll-react-hooks/prettier.config.js diff --git a/packages/polling-hooks/src/hooks/usePollList.ts b/packages/poll-react-hooks/src/hooks/usePollList.ts similarity index 100% rename from packages/polling-hooks/src/hooks/usePollList.ts rename to packages/poll-react-hooks/src/hooks/usePollList.ts diff --git a/packages/polling-hooks/src/hooks/useWakuPolling.ts b/packages/poll-react-hooks/src/hooks/useWakuPolling.ts similarity index 100% rename from packages/polling-hooks/src/hooks/useWakuPolling.ts rename to packages/poll-react-hooks/src/hooks/useWakuPolling.ts diff --git a/packages/polling-hooks/src/index.ts b/packages/poll-react-hooks/src/index.ts similarity index 100% rename from packages/polling-hooks/src/index.ts rename to packages/poll-react-hooks/src/index.ts diff --git a/packages/polling-hooks/test/index.test.ts b/packages/poll-react-hooks/test/index.test.ts similarity index 100% rename from packages/polling-hooks/test/index.test.ts rename to packages/poll-react-hooks/test/index.test.ts diff --git a/packages/polling-hooks/test/setup.ts b/packages/poll-react-hooks/test/setup.ts similarity index 100% rename from packages/polling-hooks/test/setup.ts rename to packages/poll-react-hooks/test/setup.ts diff --git a/packages/polling-hooks/tsconfig.json b/packages/poll-react-hooks/tsconfig.json similarity index 100% rename from packages/polling-hooks/tsconfig.json rename to packages/poll-react-hooks/tsconfig.json From f9f0d5bc3fbc2825fb86f5a2fe4e3cf98faa9972 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:20:11 +1100 Subject: [PATCH 15/18] Rename voting-components to vote-react-components --- .../{voting-components => vote-react-components}/.eslintrc.json | 0 .../{voting-components => vote-react-components}/.mocharc.json | 0 packages/{voting-components => vote-react-components}/README.md | 0 .../{voting-components => vote-react-components}/package.json | 0 .../prettier.config.js | 0 .../src/assets/assets.d.ts | 0 .../src/assets/svg/check.svg | 0 .../src/assets/svg/checkWinner.svg | 0 .../src/assets/svg/cross.svg | 0 .../src/assets/svg/crossWinner.svg | 0 .../src/assets/svg/external.svg | 0 .../src/assets/svg/indicator.svg | 0 .../src/components/Buttons.tsx | 0 .../src/components/Input.tsx | 0 .../src/components/NotificationItem.tsx | 0 .../src/components/ProposalInfo.tsx | 0 .../src/components/ProposalVoteCard/ProposalVote.tsx | 0 .../src/components/ProposalVoteCard/VoteChart.tsx | 0 .../src/components/ProposalVoteCard/VoteGraphBar.tsx | 0 .../src/components/ProposalVoteCard/VoteSubmitButton.tsx | 0 .../src/components/ViewLink.tsx | 0 .../src/components/VoteModal/AmountModal.tsx | 0 .../src/components/VoteModal/ConfirmModal.tsx | 0 .../src/components/VoteModal/VoteModal.tsx | 0 .../src/components/VotePropose.tsx | 0 .../src/components/VotingRoomCard.tsx | 0 .../src/components/VotingRoomList.tsx | 0 .../src/components/VotingRoomListEmpty.tsx | 0 .../src/components/VotingRoomListHeader.tsx | 0 .../src/components/mobile/NewVotingRoomMobile.tsx | 0 .../src/components/mobile/VotingRoomMobile.tsx | 0 .../src/components/newVoteModal/NewVotingRoomModal.tsx | 0 .../src/components/newVoteModal/TokenAmountScreen.tsx | 0 .../src/components/newVoteModal/VotingRoomDetailInput.tsx | 0 .../src/helpers/addCommas.ts | 0 .../src/helpers/fomatTimeLeft.ts | 0 .../{voting-components => vote-react-components}/src/index.ts | 0 .../test/index.test.ts | 0 .../{voting-components => vote-react-components}/test/setup.ts | 0 .../{voting-components => vote-react-components}/tsconfig.json | 0 40 files changed, 0 insertions(+), 0 deletions(-) rename packages/{voting-components => vote-react-components}/.eslintrc.json (100%) rename packages/{voting-components => vote-react-components}/.mocharc.json (100%) rename packages/{voting-components => vote-react-components}/README.md (100%) rename packages/{voting-components => vote-react-components}/package.json (100%) rename packages/{voting-components => vote-react-components}/prettier.config.js (100%) rename packages/{voting-components => vote-react-components}/src/assets/assets.d.ts (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/check.svg (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/checkWinner.svg (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/cross.svg (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/crossWinner.svg (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/external.svg (100%) rename packages/{voting-components => vote-react-components}/src/assets/svg/indicator.svg (100%) rename packages/{voting-components => vote-react-components}/src/components/Buttons.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/Input.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/NotificationItem.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ProposalInfo.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ProposalVoteCard/ProposalVote.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ProposalVoteCard/VoteChart.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ProposalVoteCard/VoteGraphBar.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ProposalVoteCard/VoteSubmitButton.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/ViewLink.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VoteModal/AmountModal.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VoteModal/ConfirmModal.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VoteModal/VoteModal.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VotePropose.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VotingRoomCard.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VotingRoomList.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VotingRoomListEmpty.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/VotingRoomListHeader.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/mobile/NewVotingRoomMobile.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/mobile/VotingRoomMobile.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/newVoteModal/NewVotingRoomModal.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/newVoteModal/TokenAmountScreen.tsx (100%) rename packages/{voting-components => vote-react-components}/src/components/newVoteModal/VotingRoomDetailInput.tsx (100%) rename packages/{voting-components => vote-react-components}/src/helpers/addCommas.ts (100%) rename packages/{voting-components => vote-react-components}/src/helpers/fomatTimeLeft.ts (100%) rename packages/{voting-components => vote-react-components}/src/index.ts (100%) rename packages/{voting-components => vote-react-components}/test/index.test.ts (100%) rename packages/{voting-components => vote-react-components}/test/setup.ts (100%) rename packages/{voting-components => vote-react-components}/tsconfig.json (100%) diff --git a/packages/voting-components/.eslintrc.json b/packages/vote-react-components/.eslintrc.json similarity index 100% rename from packages/voting-components/.eslintrc.json rename to packages/vote-react-components/.eslintrc.json diff --git a/packages/voting-components/.mocharc.json b/packages/vote-react-components/.mocharc.json similarity index 100% rename from packages/voting-components/.mocharc.json rename to packages/vote-react-components/.mocharc.json diff --git a/packages/voting-components/README.md b/packages/vote-react-components/README.md similarity index 100% rename from packages/voting-components/README.md rename to packages/vote-react-components/README.md diff --git a/packages/voting-components/package.json b/packages/vote-react-components/package.json similarity index 100% rename from packages/voting-components/package.json rename to packages/vote-react-components/package.json diff --git a/packages/voting-components/prettier.config.js b/packages/vote-react-components/prettier.config.js similarity index 100% rename from packages/voting-components/prettier.config.js rename to packages/vote-react-components/prettier.config.js diff --git a/packages/voting-components/src/assets/assets.d.ts b/packages/vote-react-components/src/assets/assets.d.ts similarity index 100% rename from packages/voting-components/src/assets/assets.d.ts rename to packages/vote-react-components/src/assets/assets.d.ts diff --git a/packages/voting-components/src/assets/svg/check.svg b/packages/vote-react-components/src/assets/svg/check.svg similarity index 100% rename from packages/voting-components/src/assets/svg/check.svg rename to packages/vote-react-components/src/assets/svg/check.svg diff --git a/packages/voting-components/src/assets/svg/checkWinner.svg b/packages/vote-react-components/src/assets/svg/checkWinner.svg similarity index 100% rename from packages/voting-components/src/assets/svg/checkWinner.svg rename to packages/vote-react-components/src/assets/svg/checkWinner.svg diff --git a/packages/voting-components/src/assets/svg/cross.svg b/packages/vote-react-components/src/assets/svg/cross.svg similarity index 100% rename from packages/voting-components/src/assets/svg/cross.svg rename to packages/vote-react-components/src/assets/svg/cross.svg diff --git a/packages/voting-components/src/assets/svg/crossWinner.svg b/packages/vote-react-components/src/assets/svg/crossWinner.svg similarity index 100% rename from packages/voting-components/src/assets/svg/crossWinner.svg rename to packages/vote-react-components/src/assets/svg/crossWinner.svg diff --git a/packages/voting-components/src/assets/svg/external.svg b/packages/vote-react-components/src/assets/svg/external.svg similarity index 100% rename from packages/voting-components/src/assets/svg/external.svg rename to packages/vote-react-components/src/assets/svg/external.svg diff --git a/packages/voting-components/src/assets/svg/indicator.svg b/packages/vote-react-components/src/assets/svg/indicator.svg similarity index 100% rename from packages/voting-components/src/assets/svg/indicator.svg rename to packages/vote-react-components/src/assets/svg/indicator.svg diff --git a/packages/voting-components/src/components/Buttons.tsx b/packages/vote-react-components/src/components/Buttons.tsx similarity index 100% rename from packages/voting-components/src/components/Buttons.tsx rename to packages/vote-react-components/src/components/Buttons.tsx diff --git a/packages/voting-components/src/components/Input.tsx b/packages/vote-react-components/src/components/Input.tsx similarity index 100% rename from packages/voting-components/src/components/Input.tsx rename to packages/vote-react-components/src/components/Input.tsx diff --git a/packages/voting-components/src/components/NotificationItem.tsx b/packages/vote-react-components/src/components/NotificationItem.tsx similarity index 100% rename from packages/voting-components/src/components/NotificationItem.tsx rename to packages/vote-react-components/src/components/NotificationItem.tsx diff --git a/packages/voting-components/src/components/ProposalInfo.tsx b/packages/vote-react-components/src/components/ProposalInfo.tsx similarity index 100% rename from packages/voting-components/src/components/ProposalInfo.tsx rename to packages/vote-react-components/src/components/ProposalInfo.tsx diff --git a/packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx b/packages/vote-react-components/src/components/ProposalVoteCard/ProposalVote.tsx similarity index 100% rename from packages/voting-components/src/components/ProposalVoteCard/ProposalVote.tsx rename to packages/vote-react-components/src/components/ProposalVoteCard/ProposalVote.tsx diff --git a/packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx b/packages/vote-react-components/src/components/ProposalVoteCard/VoteChart.tsx similarity index 100% rename from packages/voting-components/src/components/ProposalVoteCard/VoteChart.tsx rename to packages/vote-react-components/src/components/ProposalVoteCard/VoteChart.tsx diff --git a/packages/voting-components/src/components/ProposalVoteCard/VoteGraphBar.tsx b/packages/vote-react-components/src/components/ProposalVoteCard/VoteGraphBar.tsx similarity index 100% rename from packages/voting-components/src/components/ProposalVoteCard/VoteGraphBar.tsx rename to packages/vote-react-components/src/components/ProposalVoteCard/VoteGraphBar.tsx diff --git a/packages/voting-components/src/components/ProposalVoteCard/VoteSubmitButton.tsx b/packages/vote-react-components/src/components/ProposalVoteCard/VoteSubmitButton.tsx similarity index 100% rename from packages/voting-components/src/components/ProposalVoteCard/VoteSubmitButton.tsx rename to packages/vote-react-components/src/components/ProposalVoteCard/VoteSubmitButton.tsx diff --git a/packages/voting-components/src/components/ViewLink.tsx b/packages/vote-react-components/src/components/ViewLink.tsx similarity index 100% rename from packages/voting-components/src/components/ViewLink.tsx rename to packages/vote-react-components/src/components/ViewLink.tsx diff --git a/packages/voting-components/src/components/VoteModal/AmountModal.tsx b/packages/vote-react-components/src/components/VoteModal/AmountModal.tsx similarity index 100% rename from packages/voting-components/src/components/VoteModal/AmountModal.tsx rename to packages/vote-react-components/src/components/VoteModal/AmountModal.tsx diff --git a/packages/voting-components/src/components/VoteModal/ConfirmModal.tsx b/packages/vote-react-components/src/components/VoteModal/ConfirmModal.tsx similarity index 100% rename from packages/voting-components/src/components/VoteModal/ConfirmModal.tsx rename to packages/vote-react-components/src/components/VoteModal/ConfirmModal.tsx diff --git a/packages/voting-components/src/components/VoteModal/VoteModal.tsx b/packages/vote-react-components/src/components/VoteModal/VoteModal.tsx similarity index 100% rename from packages/voting-components/src/components/VoteModal/VoteModal.tsx rename to packages/vote-react-components/src/components/VoteModal/VoteModal.tsx diff --git a/packages/voting-components/src/components/VotePropose.tsx b/packages/vote-react-components/src/components/VotePropose.tsx similarity index 100% rename from packages/voting-components/src/components/VotePropose.tsx rename to packages/vote-react-components/src/components/VotePropose.tsx diff --git a/packages/voting-components/src/components/VotingRoomCard.tsx b/packages/vote-react-components/src/components/VotingRoomCard.tsx similarity index 100% rename from packages/voting-components/src/components/VotingRoomCard.tsx rename to packages/vote-react-components/src/components/VotingRoomCard.tsx diff --git a/packages/voting-components/src/components/VotingRoomList.tsx b/packages/vote-react-components/src/components/VotingRoomList.tsx similarity index 100% rename from packages/voting-components/src/components/VotingRoomList.tsx rename to packages/vote-react-components/src/components/VotingRoomList.tsx diff --git a/packages/voting-components/src/components/VotingRoomListEmpty.tsx b/packages/vote-react-components/src/components/VotingRoomListEmpty.tsx similarity index 100% rename from packages/voting-components/src/components/VotingRoomListEmpty.tsx rename to packages/vote-react-components/src/components/VotingRoomListEmpty.tsx diff --git a/packages/voting-components/src/components/VotingRoomListHeader.tsx b/packages/vote-react-components/src/components/VotingRoomListHeader.tsx similarity index 100% rename from packages/voting-components/src/components/VotingRoomListHeader.tsx rename to packages/vote-react-components/src/components/VotingRoomListHeader.tsx diff --git a/packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx b/packages/vote-react-components/src/components/mobile/NewVotingRoomMobile.tsx similarity index 100% rename from packages/voting-components/src/components/mobile/NewVotingRoomMobile.tsx rename to packages/vote-react-components/src/components/mobile/NewVotingRoomMobile.tsx diff --git a/packages/voting-components/src/components/mobile/VotingRoomMobile.tsx b/packages/vote-react-components/src/components/mobile/VotingRoomMobile.tsx similarity index 100% rename from packages/voting-components/src/components/mobile/VotingRoomMobile.tsx rename to packages/vote-react-components/src/components/mobile/VotingRoomMobile.tsx diff --git a/packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx b/packages/vote-react-components/src/components/newVoteModal/NewVotingRoomModal.tsx similarity index 100% rename from packages/voting-components/src/components/newVoteModal/NewVotingRoomModal.tsx rename to packages/vote-react-components/src/components/newVoteModal/NewVotingRoomModal.tsx diff --git a/packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx b/packages/vote-react-components/src/components/newVoteModal/TokenAmountScreen.tsx similarity index 100% rename from packages/voting-components/src/components/newVoteModal/TokenAmountScreen.tsx rename to packages/vote-react-components/src/components/newVoteModal/TokenAmountScreen.tsx diff --git a/packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx b/packages/vote-react-components/src/components/newVoteModal/VotingRoomDetailInput.tsx similarity index 100% rename from packages/voting-components/src/components/newVoteModal/VotingRoomDetailInput.tsx rename to packages/vote-react-components/src/components/newVoteModal/VotingRoomDetailInput.tsx diff --git a/packages/voting-components/src/helpers/addCommas.ts b/packages/vote-react-components/src/helpers/addCommas.ts similarity index 100% rename from packages/voting-components/src/helpers/addCommas.ts rename to packages/vote-react-components/src/helpers/addCommas.ts diff --git a/packages/voting-components/src/helpers/fomatTimeLeft.ts b/packages/vote-react-components/src/helpers/fomatTimeLeft.ts similarity index 100% rename from packages/voting-components/src/helpers/fomatTimeLeft.ts rename to packages/vote-react-components/src/helpers/fomatTimeLeft.ts diff --git a/packages/voting-components/src/index.ts b/packages/vote-react-components/src/index.ts similarity index 100% rename from packages/voting-components/src/index.ts rename to packages/vote-react-components/src/index.ts diff --git a/packages/voting-components/test/index.test.ts b/packages/vote-react-components/test/index.test.ts similarity index 100% rename from packages/voting-components/test/index.test.ts rename to packages/vote-react-components/test/index.test.ts diff --git a/packages/voting-components/test/setup.ts b/packages/vote-react-components/test/setup.ts similarity index 100% rename from packages/voting-components/test/setup.ts rename to packages/vote-react-components/test/setup.ts diff --git a/packages/voting-components/tsconfig.json b/packages/vote-react-components/tsconfig.json similarity index 100% rename from packages/voting-components/tsconfig.json rename to packages/vote-react-components/tsconfig.json From 6eefaf2e0e18c3340057517a3734e74d4e678903 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:20:38 +1100 Subject: [PATCH 16/18] Rename voting-example to vote-example --- .../{voting-example => vote-example}/.eslintrc.json | 0 .../{voting-example => vote-example}/.mocharc.json | 0 packages/{voting-example => vote-example}/README.md | 0 .../{voting-example => vote-example}/package.json | 0 .../prettier.config.js | 0 .../src/assets/assets.d.ts | 0 .../src/assets/images/voting.png | Bin .../src/components/Voting.tsx | 0 .../src/components/VotingMobile.tsx | 0 .../{voting-example => vote-example}/src/index.tsx | 0 .../test/index.test.ts | 0 .../{voting-example => vote-example}/test/setup.ts | 0 .../{voting-example => vote-example}/tsconfig.json | 0 13 files changed, 0 insertions(+), 0 deletions(-) rename packages/{voting-example => vote-example}/.eslintrc.json (100%) rename packages/{voting-example => vote-example}/.mocharc.json (100%) rename packages/{voting-example => vote-example}/README.md (100%) rename packages/{voting-example => vote-example}/package.json (100%) rename packages/{voting-example => vote-example}/prettier.config.js (100%) rename packages/{voting-example => vote-example}/src/assets/assets.d.ts (100%) rename packages/{voting-example => vote-example}/src/assets/images/voting.png (100%) rename packages/{voting-example => vote-example}/src/components/Voting.tsx (100%) rename packages/{voting-example => vote-example}/src/components/VotingMobile.tsx (100%) rename packages/{voting-example => vote-example}/src/index.tsx (100%) rename packages/{voting-example => vote-example}/test/index.test.ts (100%) rename packages/{voting-example => vote-example}/test/setup.ts (100%) rename packages/{voting-example => vote-example}/tsconfig.json (100%) diff --git a/packages/voting-example/.eslintrc.json b/packages/vote-example/.eslintrc.json similarity index 100% rename from packages/voting-example/.eslintrc.json rename to packages/vote-example/.eslintrc.json diff --git a/packages/voting-example/.mocharc.json b/packages/vote-example/.mocharc.json similarity index 100% rename from packages/voting-example/.mocharc.json rename to packages/vote-example/.mocharc.json diff --git a/packages/voting-example/README.md b/packages/vote-example/README.md similarity index 100% rename from packages/voting-example/README.md rename to packages/vote-example/README.md diff --git a/packages/voting-example/package.json b/packages/vote-example/package.json similarity index 100% rename from packages/voting-example/package.json rename to packages/vote-example/package.json diff --git a/packages/voting-example/prettier.config.js b/packages/vote-example/prettier.config.js similarity index 100% rename from packages/voting-example/prettier.config.js rename to packages/vote-example/prettier.config.js diff --git a/packages/voting-example/src/assets/assets.d.ts b/packages/vote-example/src/assets/assets.d.ts similarity index 100% rename from packages/voting-example/src/assets/assets.d.ts rename to packages/vote-example/src/assets/assets.d.ts diff --git a/packages/voting-example/src/assets/images/voting.png b/packages/vote-example/src/assets/images/voting.png similarity index 100% rename from packages/voting-example/src/assets/images/voting.png rename to packages/vote-example/src/assets/images/voting.png diff --git a/packages/voting-example/src/components/Voting.tsx b/packages/vote-example/src/components/Voting.tsx similarity index 100% rename from packages/voting-example/src/components/Voting.tsx rename to packages/vote-example/src/components/Voting.tsx diff --git a/packages/voting-example/src/components/VotingMobile.tsx b/packages/vote-example/src/components/VotingMobile.tsx similarity index 100% rename from packages/voting-example/src/components/VotingMobile.tsx rename to packages/vote-example/src/components/VotingMobile.tsx diff --git a/packages/voting-example/src/index.tsx b/packages/vote-example/src/index.tsx similarity index 100% rename from packages/voting-example/src/index.tsx rename to packages/vote-example/src/index.tsx diff --git a/packages/voting-example/test/index.test.ts b/packages/vote-example/test/index.test.ts similarity index 100% rename from packages/voting-example/test/index.test.ts rename to packages/vote-example/test/index.test.ts diff --git a/packages/voting-example/test/setup.ts b/packages/vote-example/test/setup.ts similarity index 100% rename from packages/voting-example/test/setup.ts rename to packages/vote-example/test/setup.ts diff --git a/packages/voting-example/tsconfig.json b/packages/vote-example/tsconfig.json similarity index 100% rename from packages/voting-example/tsconfig.json rename to packages/vote-example/tsconfig.json From 7bbbf573bbf9ea8a21182af1c229736ba3987523 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:21:03 +1100 Subject: [PATCH 17/18] Rename voting-hooks to vote-react-hooks --- packages/{voting-hooks => vote-react-hooks}/.eslintrc.json | 0 packages/{voting-hooks => vote-react-hooks}/.mocharc.json | 0 packages/{voting-hooks => vote-react-hooks}/README.md | 0 packages/{voting-hooks => vote-react-hooks}/package.json | 0 packages/{voting-hooks => vote-react-hooks}/prettier.config.js | 0 .../{voting-hooks => vote-react-hooks}/src/hooks/useVotingRoom.ts | 0 .../src/hooks/useVotingRoomsId.ts | 0 .../{voting-hooks => vote-react-hooks}/src/hooks/useWakuVoting.ts | 0 packages/{voting-hooks => vote-react-hooks}/src/index.ts | 0 packages/{voting-hooks => vote-react-hooks}/test/index.test.ts | 0 packages/{voting-hooks => vote-react-hooks}/test/setup.ts | 0 packages/{voting-hooks => vote-react-hooks}/tsconfig.json | 0 12 files changed, 0 insertions(+), 0 deletions(-) rename packages/{voting-hooks => vote-react-hooks}/.eslintrc.json (100%) rename packages/{voting-hooks => vote-react-hooks}/.mocharc.json (100%) rename packages/{voting-hooks => vote-react-hooks}/README.md (100%) rename packages/{voting-hooks => vote-react-hooks}/package.json (100%) rename packages/{voting-hooks => vote-react-hooks}/prettier.config.js (100%) rename packages/{voting-hooks => vote-react-hooks}/src/hooks/useVotingRoom.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/src/hooks/useVotingRoomsId.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/src/hooks/useWakuVoting.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/src/index.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/test/index.test.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/test/setup.ts (100%) rename packages/{voting-hooks => vote-react-hooks}/tsconfig.json (100%) diff --git a/packages/voting-hooks/.eslintrc.json b/packages/vote-react-hooks/.eslintrc.json similarity index 100% rename from packages/voting-hooks/.eslintrc.json rename to packages/vote-react-hooks/.eslintrc.json diff --git a/packages/voting-hooks/.mocharc.json b/packages/vote-react-hooks/.mocharc.json similarity index 100% rename from packages/voting-hooks/.mocharc.json rename to packages/vote-react-hooks/.mocharc.json diff --git a/packages/voting-hooks/README.md b/packages/vote-react-hooks/README.md similarity index 100% rename from packages/voting-hooks/README.md rename to packages/vote-react-hooks/README.md diff --git a/packages/voting-hooks/package.json b/packages/vote-react-hooks/package.json similarity index 100% rename from packages/voting-hooks/package.json rename to packages/vote-react-hooks/package.json diff --git a/packages/voting-hooks/prettier.config.js b/packages/vote-react-hooks/prettier.config.js similarity index 100% rename from packages/voting-hooks/prettier.config.js rename to packages/vote-react-hooks/prettier.config.js diff --git a/packages/voting-hooks/src/hooks/useVotingRoom.ts b/packages/vote-react-hooks/src/hooks/useVotingRoom.ts similarity index 100% rename from packages/voting-hooks/src/hooks/useVotingRoom.ts rename to packages/vote-react-hooks/src/hooks/useVotingRoom.ts diff --git a/packages/voting-hooks/src/hooks/useVotingRoomsId.ts b/packages/vote-react-hooks/src/hooks/useVotingRoomsId.ts similarity index 100% rename from packages/voting-hooks/src/hooks/useVotingRoomsId.ts rename to packages/vote-react-hooks/src/hooks/useVotingRoomsId.ts diff --git a/packages/voting-hooks/src/hooks/useWakuVoting.ts b/packages/vote-react-hooks/src/hooks/useWakuVoting.ts similarity index 100% rename from packages/voting-hooks/src/hooks/useWakuVoting.ts rename to packages/vote-react-hooks/src/hooks/useWakuVoting.ts diff --git a/packages/voting-hooks/src/index.ts b/packages/vote-react-hooks/src/index.ts similarity index 100% rename from packages/voting-hooks/src/index.ts rename to packages/vote-react-hooks/src/index.ts diff --git a/packages/voting-hooks/test/index.test.ts b/packages/vote-react-hooks/test/index.test.ts similarity index 100% rename from packages/voting-hooks/test/index.test.ts rename to packages/vote-react-hooks/test/index.test.ts diff --git a/packages/voting-hooks/test/setup.ts b/packages/vote-react-hooks/test/setup.ts similarity index 100% rename from packages/voting-hooks/test/setup.ts rename to packages/vote-react-hooks/test/setup.ts diff --git a/packages/voting-hooks/tsconfig.json b/packages/vote-react-hooks/tsconfig.json similarity index 100% rename from packages/voting-hooks/tsconfig.json rename to packages/vote-react-hooks/tsconfig.json From a1524329769b4f38f8df3a6ed81b0de17066ec36 Mon Sep 17 00:00:00 2001 From: Franck Date: Tue, 7 Dec 2021 13:24:10 +1100 Subject: [PATCH 18/18] Fix some typos, add title to readmes --- packages/example/README.md | 5 +---- packages/poll-example/README.md | 4 +++- packages/poll-react-hooks/README.md | 4 ++-- packages/vote-example/README.md | 6 ++++-- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/example/README.md b/packages/example/README.md index c2d1749..c40a246 100644 --- a/packages/example/README.md +++ b/packages/example/README.md @@ -1,4 +1 @@ -# status-community-dapp -Community directory curator dApp for Status - -Webpack for hosting polling and proposal apps \ No newline at end of file +# DappConnect Vote & Poll SDK Example diff --git a/packages/poll-example/README.md b/packages/poll-example/README.md index 998ef4e..c5b4ee9 100644 --- a/packages/poll-example/README.md +++ b/packages/poll-example/README.md @@ -1,3 +1,5 @@ +# DappConnect Poll SDK Example + This package is example usage of WakuPolling Example uses usedapp for exposing web3 provider @@ -67,4 +69,4 @@ Waku polling also exposes `getDetailedTimedPolls` ``` const DetailedTimedPolls = await wakuPolling.getDetailedTimedPolls() -``` \ No newline at end of file +``` diff --git a/packages/poll-react-hooks/README.md b/packages/poll-react-hooks/README.md index ee77720..3a7a120 100644 --- a/packages/poll-react-hooks/README.md +++ b/packages/poll-react-hooks/README.md @@ -1,7 +1,7 @@ -Package contains react hooks that help with memoizing values +Package contains react hooks that help with memorizing values ## hooks -`usePollList(wakuPolling: WakuPolling | undefined)` returns array of DetailedTimedPoll of polls on waku network --`useWakuPolling(appName: string, tokenAddress: string, provider: Web3Provider | undefined, multicallAddress: string | undefined)` returns meoized WakuPolling object \ No newline at end of file +-`useWakuPolling(appName: string, tokenAddress: string, provider: Web3Provider | undefined, multicallAddress: string | undefined)` returns meoized WakuPolling object diff --git a/packages/vote-example/README.md b/packages/vote-example/README.md index bd6d239..218ed06 100644 --- a/packages/vote-example/README.md +++ b/packages/vote-example/README.md @@ -1,4 +1,6 @@ -Package contains example usage of voting sdk +# DappConnect Vote SDK Example + +Package contains example usage of DappConnect Vote SDK For more detailed api please see README in voting-hooks and voting-components @@ -43,4 +45,4 @@ const votes = useVotingRoomsId(wakuVoting) To create voting room you can use `NewVotingRoomModal` component. -Component is a modal and expects a state value and state update function (`showModal` and `setShowModal`) to be able show and hide modal \ No newline at end of file +Component is a modal and expects a state value and state update function (`showModal` and `setShowModal`) to be able show and hide modal