Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add email form for recipient registration #539

Merged
merged 37 commits into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
7746bbb
refactoring
yuetloo Jul 20, 2022
6e06f87
refactor recipient submission ui
yuetloo Jul 20, 2022
5571c1c
add email field on the join form
yuetloo Jul 20, 2022
e2aae74
update state on navigate next
yuetloo Jul 20, 2022
e9a5ef4
fix chain short name
yuetloo Jul 20, 2022
4452285
format long error message
yuetloo Jul 20, 2022
1ae35ea
refactor to work with new form navigation flow
yuetloo Jul 20, 2022
262b9e8
refactor to work with new submission flow
yuetloo Jul 20, 2022
1dcbb56
remove obsolete code
yuetloo Jul 20, 2022
1113993
remove universal recipient registry
yuetloo Jul 20, 2022
9de0c0e
fix lint warning
yuetloo Jul 20, 2022
ad3d4dd
add validation rules to recipient submission form
yuetloo Jul 21, 2022
85a862a
update steps for form navigation
yuetloo Jul 21, 2022
c58b15c
move button to drop down menu
yuetloo Jul 21, 2022
da5a299
allow update fund receiving address on the current chain only
yuetloo Jul 22, 2022
ba0dd13
add metadata validation and code cleanup
yuetloo Jul 26, 2022
5adbf82
allow owner to add recipient for simple recipient type
yuetloo Jul 27, 2022
5667a5e
fix lint warning
yuetloo Jul 27, 2022
9ab7c5a
fix typo
yuetloo Aug 2, 2022
4673419
fix subgraph build warning
yuetloo Aug 2, 2022
efae44c
allow coordinator to add recipient for simple recipient registry
yuetloo Aug 2, 2022
a8fa9bd
fix lint warning
yuetloo Aug 2, 2022
ed17365
hide deposit information if deposit is not required
yuetloo Aug 2, 2022
85255b6
set challenge period and deposit to 0 for simple registry
yuetloo Aug 2, 2022
39fabbd
simplify code
yuetloo Aug 2, 2022
d35dc05
styling recipient submission widget
yuetloo Aug 2, 2022
82c061c
disable navigation if metadata is not selected
yuetloo Aug 2, 2022
39c4028
fix typo
yuetloo Aug 3, 2022
30f99af
refactor and do not show add project button for previous rounds
yuetloo Aug 3, 2022
cba88c8
css styling
yuetloo Aug 3, 2022
7e99883
make the metadata list in join form responsive
yuetloo Aug 3, 2022
8cb0661
change recipient menu dropdown icon to diamond and rearrange items
yuetloo Aug 4, 2022
d407850
use consistent environment variable prefix
yuetloo Aug 4, 2022
fb702be
add missing bannerImageHash
yuetloo Aug 4, 2022
6f332d0
allow simple recipient registry owner to remove recipient
yuetloo Aug 4, 2022
ee70287
update about recipient for simple recipient registry
yuetloo Aug 4, 2022
f80f857
Merge pull request #538 from clrfund/feature/simple-registry-changes
auryn-macmillan Aug 8, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
204 changes: 0 additions & 204 deletions contracts/contracts/recipientRegistry/UniversalRecipientRegistry.sol

This file was deleted.

17 changes: 11 additions & 6 deletions contracts/scripts/deployRecipientRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RecipientRegistryFactory } from '../utils/recipient-registry-factory'
* Deploy a new recipient registry.
* The following environment variables must be set to run the script
*
* RECIPIENT_REGISTRY_TYPE - default is simple, values can be simple, optimistic, universal
* RECIPIENT_REGISTRY_TYPE - default is simple, values can be simple, optimistic
* FUNDING_ROUND_FACTORY_ADDRESS - address of the funding round factory
* WALLET_PRIVATE_KEY - private key of the account that will fund this transaction
* JSONRPC_HTTP_URL - URL to connect to the node
Expand All @@ -19,8 +19,13 @@ import { RecipientRegistryFactory } from '../utils/recipient-registry-factory'
async function main() {
const recipientRegistryType = process.env.RECIPIENT_REGISTRY_TYPE || 'simple'
const fundingRoundFactoryAddress = process.env.FUNDING_ROUND_FACTORY_ADDRESS
const challengePeriodDuration = process.env.CHALLENGE_PERIOD_IN_SECONDS || 300
const baseDeposit = process.env.BASE_DEPOSIT || UNIT.div(10).toString()
let challengePeriodDuration = '0'
let baseDeposit = '0'

if (recipientRegistryType === 'optimistic') {
challengePeriodDuration = process.env.CHALLENGE_PERIOD_IN_SECONDS || '300'
baseDeposit = process.env.BASE_DEPOSIT || UNIT.div(10).toString()
}

if (!fundingRoundFactoryAddress) {
console.log('Environment variable FUNDING_ROUND_FACTORY_ADDRESS not set')
Expand All @@ -35,9 +40,9 @@ async function main() {
console.log('*******************')
console.log(`Deploying a new ${recipientRegistryType} recipient registry!`)
console.log(` challenge period in seconds: ${challengePeriodDuration}`)
console.log(` baseDeposit ${baseDeposit}`)
console.log(` fundingRoundFactoryAddress ${fundingRoundFactoryAddress}`)
console.log(` fundingRoundFactoryOwner ${factoryOwner}`)
console.log(` baseDeposit: ${baseDeposit}`)
console.log(` fundingRoundFactoryAddress: ${fundingRoundFactoryAddress}`)
console.log(` fundingRoundFactoryOwner: ${factoryOwner}`)
const [deployer] = await ethers.getSigners()

const recipientRegistry = await RecipientRegistryFactory.deploy(
Expand Down
1 change: 0 additions & 1 deletion contracts/scripts/deployTestRound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ async function main() {
const RecipientRegistryName: Record<string, string> = {
simple: 'SimpleRecipientRegistry',
optimistic: 'OptimisticRecipientRegistry',
universal: 'UniversalRecipientRegistry',
}
const recipientRegistryAddress = await factory.recipientRegistry()
const recipientRegistryName = RecipientRegistryName[recipientRegistryType]
Expand Down
Loading