Merge pull request #1 from status-im/name-packages

This commit is contained in:
F 2021-12-07 14:50:26 +11:00 committed by GitHub
commit beae8c2857
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
112 changed files with 132 additions and 129 deletions

View File

@ -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
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.

View File

@ -1,5 +1,5 @@
{
"name": "status-waku-voting",
"name": "@dappconnect/vote-poll-sdk",
"private": true,
"license": "MIT",
"engines": {

View File

@ -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",

View File

@ -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)
```
@ -218,4 +218,4 @@ TimedPollVoteMsg {
id: string
chainId: number
}
```
```

View File

@ -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",
@ -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",

View File

@ -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'

View File

@ -1,4 +1 @@
# status-community-dapp
Community directory curator dApp for Status
Webpack for hosting polling and proposal apps
# DappConnect Vote & Poll SDK Example

View File

@ -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",

View File

@ -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'

View File

@ -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()
```
```

View File

@ -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",
@ -30,10 +30,10 @@
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
},
"dependencies": {
"@status-waku-voting/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",
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
"@dappconnect/poll-sdk-react-components": "^0.1.0",
"@dappconnect/poll-sdk-react-hooks": "^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",

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -2,11 +2,11 @@ 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'
import { Theme } from '@status-waku-voting/react-components/dist/esm/src/style/themes'
import { useWakuPolling } from '@dappconnect/poll-sdk-react-hooks'
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

View File

@ -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,

View File

@ -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",
@ -32,9 +32,9 @@
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
},
"dependencies": {
"@status-waku-voting/core": "^0.1.0",
"@status-waku-voting/polling-hooks": "^0.1.0",
"@status-waku-voting/react-components": "^0.1.0",
"@dappconnect/vote-poll-sdk-core": "^0.1.0",
"@dappconnect/poll-sdk-react-hooks": "^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"

View File

@ -1,12 +1,12 @@
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 { 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

View File

@ -1,8 +1,8 @@
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 { Input, addIcon, SmallButton, Modal, Theme } from '@status-waku-voting/react-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 '@dappconnect/vote-poll-sdk-react-components'
function getLocaleIsoTime(dateTime: Date) {
const MS_PER_MINUTE = 60000

View File

@ -1,10 +1,10 @@
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'
import { Theme } from '@status-waku-voting/react-components'
import { usePollList } from '@status-waku-voting/polling-hooks'
import { Theme } from '@dappconnect/vote-poll-sdk-react-components'
import { usePollList } from '@dappconnect/poll-sdk-react-hooks'
type PollListProps = {
theme: Theme
wakuPolling: WakuPolling | undefined

View File

@ -1,7 +1,7 @@
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'
import { colorRouletteGenerator, checkCircleIcon } from '@dappconnect/vote-poll-sdk-react-components'
type PollResultsProps = {
poll: DetailedTimedPoll

View File

@ -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
-`useWakuPolling(appName: string, tokenAddress: string, provider: Web3Provider | undefined, multicallAddress: string | undefined)` returns meoized WakuPolling object

View File

@ -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",
@ -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",

View File

@ -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) {

View File

@ -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(

View File

@ -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",
@ -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",

View File

@ -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'

View File

@ -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
Component is a modal and expects a state value and state update function (`showModal` and `setShowModal`) to be able show and hide modal

View File

@ -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",
@ -32,10 +32,10 @@
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
},
"dependencies": {
"@status-waku-voting/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-core": "^0.1.0",
"@dappconnect/vote-sdk-react-components": "^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",
"react": "^17.0.2",

View File

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -5,14 +5,14 @@ import {
VotingRoomList,
VotingRoomListEmpty,
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 { useTokenBalance } from '@status-waku-voting/react-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'
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 { Modal, Networks, useMobileVersion, Theme } from '@dappconnect/vote-poll-sdk-react-components'
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'
type VotingListHeaderProps = {

View File

@ -2,10 +2,10 @@ 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 '@status-waku-voting/core'
import { useTokenBalance } from '@status-waku-voting/react-components'
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
import { useTokenBalance } from '@dappconnect/vote-poll-sdk-react-components'
type VotingRoomCreationProps = {
tokenBalance: number

View File

@ -1,11 +1,11 @@
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 '@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'

View File

@ -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",
@ -32,9 +32,9 @@
"lint:prettier": "yarn prettier './{src,test}/**/*.{ts,tsx}'"
},
"dependencies": {
"@status-waku-voting/core": "^0.1.0",
"@status-waku-voting/voting-hooks": "^0.1.0",
"@status-waku-voting/react-components": "^0.1.0",
"@dappconnect/vote-poll-sdk-core": "^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",
"react": "^17.0.2",

View File

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

View File

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 305 B

After

Width:  |  Height:  |  Size: 305 B

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 346 B

After

Width:  |  Height:  |  Size: 346 B

View File

@ -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)`

View File

@ -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'

View File

@ -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'

View File

@ -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

View File

@ -8,9 +8,9 @@ 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 { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType'
import { WakuVoting } from '@status-waku-voting/core'
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'
export interface VoteChartProps {
votingRoom: VotingRoom

View File

@ -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 {

View File

@ -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'

View File

@ -1,9 +1,9 @@
import React, { useEffect, useMemo, useState } from 'react'
import { VotingRoom } from '@status-waku-voting/core/dist/esm/src/types/PollType'
import { Modal, Theme } from '@status-waku-voting/react-components'
import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
import { Modal, Theme } from '@dappconnect/vote-poll-sdk-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

View File

@ -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'

View File

@ -1,13 +1,13 @@
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 '@status-waku-voting/core'
import { useVotingRoom } from '@status-waku-voting/voting-hooks'
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
import { useVotingRoom } from '@dappconnect/vote-sdk-react-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 { useRefMobileVersion } from '@dappconnect/vote-poll-sdk-react-components'
import { VotingRoom } from '@dappconnect/vote-poll-sdk-core/dist/esm/src/types/PollType'
interface VotingRoomCardProps {
votingRoomId: number

View File

@ -1,10 +1,10 @@
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 '@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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -7,8 +7,8 @@ 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 { WakuVoting } from '@status-waku-voting/core'
import { useVotingRoom } from '@dappconnect/vote-sdk-react-hooks'
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
import { BigNumber } from 'ethers'
interface VotingRoomMobileProps {
wakuVoting: WakuVoting

View File

@ -1,5 +1,5 @@
import { WakuVoting } from '@status-waku-voting/core'
import { Modal, Theme } from '@status-waku-voting/react-components'
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
import { Modal, Theme } from '@dappconnect/vote-poll-sdk-react-components'
import React, { useEffect, useState } from 'react'
import { VotingRoomDetailInput } from './VotingRoomDetailInput'
import { TokenAmountScreen } from './TokenAmountScreen'

View File

@ -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'

View File

@ -2,8 +2,8 @@ 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 { WakuVoting } from '@status-waku-voting/core'
import { blueTheme } from '@dappconnect/vote-poll-sdk-react-components/dist/esm/src/style/themes'
import { WakuVoting } from '@dappconnect/vote-poll-sdk-core'
interface VotingRoomDetailInputProps {
availableAmount: number

Some files were not shown because too many files have changed in this diff Show More