-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bernardo Vieira
authored
Jun 29, 2023
1 parent
5ecafb8
commit f760605
Showing
35 changed files
with
4,104 additions
and
7,959 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v16.13.0 | ||
v18.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,11 @@ | ||
import React, { useEffect, useState } from 'react'; | ||
import { hasPACTVotingPower } from '@impact-market/utils/pact'; | ||
import { useProvider, useCelo } from '@celo/react-celo'; | ||
import React from 'react'; | ||
// import { hasPACTVotingPower } from '@impact-market/utils/pact'; | ||
// import { useProvider, useCelo } from '@celo/react-celo'; | ||
|
||
const VotingPower = () => { | ||
const provider = useProvider(); | ||
const { address } = useCelo(); | ||
const [hasVotingPower, setHasVotingPower] = useState(false); | ||
|
||
useEffect(() => { | ||
if (address) { | ||
hasPACTVotingPower(provider, 44787, address).then(has => setHasVotingPower(!!has)); | ||
} | ||
}, [address, provider]); | ||
// TODO: to remove | ||
|
||
return ( | ||
<div> | ||
<h3>Voting Power</h3> | ||
enough voting power to propose: {hasVotingPower.toString()} | ||
</div> | ||
); | ||
const VotingPower = () => { | ||
return null; | ||
}; | ||
|
||
export default VotingPower; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.