Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
350 commits
Select commit Hold shift + click to select a range
d774b7d
dai wormhole first draft
wackerow Apr 17, 2021
34b7b8e
ef-logo tweak
wackerow Apr 17, 2021
7da9074
built [...] dropdown menu component
wackerow Apr 17, 2021
10eed2a
Persist recipient form data in store
samajammin Apr 17, 2021
10667c3
implements IPFS upload, first draft
wackerow Apr 18, 2021
c70ae80
ipfs upload functionality to thumbnai
wackerow Apr 18, 2021
234cb85
change wallet disconnect icon
Apr 19, 2021
daa755e
dropdown menu improvements
wackerow Apr 19, 2021
e7ff7ce
form progress navigation
wackerow Apr 19, 2021
9d7577f
Update _theme.scss [skip ci]
wackerow Apr 19, 2021
e19133c
conditional ENS display
wackerow Apr 19, 2021
2486f0e
Update Profile.vue
wackerow Apr 19, 2021
138601e
Update recipient-registry-optimistic.ts
wackerow Apr 19, 2021
a027185
fetches ENS from mainnet provider
wackerow Apr 19, 2021
2c33b38
more ens progress
wackerow Apr 20, 2021
174e7ca
z-index bug
wackerow Apr 20, 2021
f08ce18
Update user.ts
wackerow Apr 20, 2021
dabf852
wires up disconnect wallet
wackerow Apr 20, 2021
7560a9d
dropdown improvements
Apr 20, 2021
2de8c27
style tweaks for app and project cards
Apr 20, 2021
af95c02
project page updates
Apr 20, 2021
59dc3a1
criteria modal added – lots of styling clean up needed
Apr 20, 2021
102ef48
some design tweaks to the round info panel
Apr 20, 2021
49b6643
Remove broken ENS fetch
samajammin Apr 20, 2021
f3feee4
Merge branch 'develop' into application-pages
wackerow Apr 20, 2021
d8cd404
linting
wackerow Apr 20, 2021
a3e3416
Merge remote-tracking branch 'upstream/develop' into application-pages
wackerow Apr 20, 2021
5ec0b0f
linting
wackerow Apr 20, 2021
98e589e
remove calc() and default $route to empty string
wackerow Apr 21, 2021
446edb8
var() attempt
wackerow Apr 21, 2021
bbc469d
typescript build error fixes
wackerow Apr 21, 2021
ca7b769
force return null if balance null/undefined
wackerow Apr 21, 2021
fcaf6d2
linting ✔
wackerow Apr 21, 2021
c467041
remove unused import [skip ci]
wackerow Apr 21, 2021
dd4e3ab
Merge pull request #3 from ethereum/application-pages
wackerow Apr 21, 2021
3bdf98b
Added contact email input with descriptions
Apr 21, 2021
d6d2161
removed contact input from project-added
Apr 21, 2021
5c601f0
project page updates
Apr 21, 2021
6f7f474
Link Project view data
samajammin Apr 21, 2021
f5ffd69
form flow logic fixes
wackerow Apr 21, 2021
024ef44
improves logic of form flow navigation
wackerow Apr 22, 2021
8cecbdd
remove console log
wackerow Apr 22, 2021
96f8821
linting
wackerow Apr 22, 2021
9328e97
update warning color to match deployer
Apr 22, 2021
707d953
Design tweaks for project page layout
Apr 22, 2021
e05c4aa
Added more dummy projects to project list
Apr 22, 2021
3db733c
Added tag and tagline to project card
Apr 22, 2021
c386a2d
added padding to bottom of project list
Apr 22, 2021
1fca6ab
added "edit details" button to display if you're owner of the project
Apr 22, 2021
4887c05
rearranged project page and added problem space
Apr 22, 2021
aec8778
ts linting
wackerow Apr 23, 2021
fdd4ef4
wires 'go to app' and 'how it works' actions
wackerow Apr 23, 2021
420bfef
ts linting
wackerow Apr 23, 2021
708d193
Merge pull request #10 from ethereum/button-actions
ryancreatescopy Apr 23, 2021
634c618
Adds conditional messages on JoinLanding for full round and closed round
Apr 23, 2021
a4fbd40
attempting to conditionally display join banner
Apr 23, 2021
9e6e82c
returns JoinLanding page to open status
Apr 23, 2021
4100944
made contact email mandatory
Apr 23, 2021
6836b63
wip – aligning with other modal styles
Apr 23, 2021
36ee628
Extracts loader as component
Apr 23, 2021
db9ce07
Merge pull request #5 from ethereum/contact-email-form
samajammin Apr 23, 2021
99a7bdf
Merge pull request #6 from ethereum/project-page
samajammin Apr 23, 2021
b365ac6
Merge pull request #9 from ethereum/project-card
samajammin Apr 23, 2021
dfc3914
Remove Loader from App.vue
samajammin Apr 23, 2021
13dc40d
Merge pull request #13 from ethereum/loader
samajammin Apr 23, 2021
5fcda79
requires at least one link
wackerow Apr 23, 2021
0626cc3
IPFS upload and display
wackerow Apr 21, 2021
c009992
removes entering IPFS hash as option
wackerow Apr 21, 2021
95c5ff3
remove console log
wackerow Apr 22, 2021
8d3c766
removes requiresUpload
wackerow Apr 22, 2021
262394f
adds hash getters
wackerow Apr 22, 2021
8cde6d6
added loader to ipfs upload
Apr 22, 2021
39eb74d
Refactor IPFS inputs into IpfsForm component
samajammin Apr 26, 2021
4a9ea90
ipfs error handling for non-images
wackerow Apr 26, 2021
3711fb5
adds "Clear" button to start over for that image
wackerow Apr 26, 2021
466fd8b
copy button for IPFS hash
wackerow Apr 26, 2021
f7f7301
Merge pull request #7 from ethereum/ipfs-images
samajammin Apr 26, 2021
7f15e47
Merge branch 'develop' into is-step-unlocked
wackerow Apr 26, 2021
1a87267
remove IPFS instantiation in Join
wackerow Apr 26, 2021
9d389e1
consolidate form save mutations
wackerow Apr 26, 2021
d21cf41
remove dev alert
wackerow Apr 26, 2021
be5420c
project display refactor draft
wackerow Apr 27, 2021
25a23f7
ts linting
wackerow Apr 27, 2021
206b7a8
set up summary data
Apr 27, 2021
6451afe
implemented edit functionality
Apr 27, 2021
4ebf42d
added links so users can check urls
Apr 27, 2021
b8eafec
added warning banner component
Apr 27, 2021
ed6a39c
added warnings to review summary
Apr 27, 2021
733b620
added some descriptions
Apr 27, 2021
b305317
added conditionals to project page based on team info provided
Apr 27, 2021
9e7ce20
Merge pull request #8 from ethereum/is-step-unlocked
samajammin Apr 27, 2021
7a952c7
Restores `scoped` css context on `Join.vue`
wackerow Apr 27, 2021
18b83ad
Merge remote-tracking branch 'upstream/develop' into develop
samajammin Apr 27, 2021
b604320
Merge branch 'develop' of https://github.com/ethereum/clrfund into de…
samajammin Apr 27, 2021
0f49df9
Merge pull request #24 from ethereum/input-patch
samajammin Apr 27, 2021
040997a
Add Etherscan URL
samajammin Apr 27, 2021
3a40a89
Merge branch 'develop' into summary
samajammin Apr 27, 2021
a5223a1
Merge pull request #22 from ethereum/summary
samajammin Apr 27, 2021
d914d91
Merge branch 'develop' into project-component
wackerow Apr 27, 2021
3bb7e9e
typo fix
wackerow Apr 27, 2021
4c52368
adds markdown for description
wackerow Apr 27, 2021
2ff5ddd
adds markdown to description of ProjectComponent
wackerow Apr 27, 2021
7357473
ts linting
wackerow Apr 27, 2021
e3c0d73
Created tooltip component + added example
Apr 28, 2021
f7ad460
switched out button for image
Apr 28, 2021
d269148
updates registry for Urls instead of hashes
wackerow Apr 28, 2021
78a76b8
project grid layout
wackerow Apr 28, 2021
5c9a30f
IpfsForm updates
wackerow Apr 28, 2021
dc5f522
summary page conditional layouts
wackerow Apr 28, 2021
4a686a6
dummy form data for dev
wackerow Apr 28, 2021
fe850d6
ts linting
wackerow Apr 28, 2021
8f14c31
ProjectProfile rename
wackerow Apr 28, 2021
b4b1904
project-profile rename
wackerow Apr 28, 2021
71a73e6
added tooltips to roundinfo and tweaked styling
Apr 29, 2021
4ac3f62
Merge pull request #29 from ethereum/dropdown-fix
samajammin Apr 30, 2021
c18bec9
Merge pull request #28 from ethereum/tooltip-component
ryancreatescopy Apr 30, 2021
de2f560
landing buttons to flex-wrap
wackerow May 5, 2021
09f2391
cleans up theme.scss utilizing mixins
wackerow May 5, 2021
ba012ad
fixes small overflow bug on dropdown menu
wackerow May 5, 2021
0265d15
Add markdown component & markdown header styles
samajammin May 5, 2021
92e67a5
ProjectAdded.vue polishing
wackerow May 5, 2021
681475d
updated secondary button styling
May 6, 2021
a855dab
some content updates and styling fixes
May 6, 2021
f0aba97
Rename IpfsImageUpload component
samajammin May 6, 2021
29abdff
Update markdown styles
samajammin May 6, 2021
2876700
Add markdown previews for textarea inputs
samajammin May 6, 2021
d09e70d
Comment out dummy data
samajammin May 6, 2021
17347ba
Merge pull request #15 from ethereum/project-component
samajammin May 6, 2021
23aac75
Fetch challengePeriodDuration data from contract
samajammin May 6, 2021
b39f30f
responsive design, adds keyboard accessibility
wackerow May 6, 2021
a5fe818
reverts scaling adjustment
wackerow May 6, 2021
56ff8b6
Fix link section form validation
samajammin May 6, 2021
614ea11
ts linting
wackerow May 6, 2021
c961e62
adds tabbed summary preview
wackerow May 6, 2021
c6185d2
Remove error class for link prompt
samajammin May 6, 2021
15b3eb2
Add styles updates from #21
samajammin May 6, 2021
0f80197
Add option to input IPFS hash directly
samajammin May 6, 2021
f054017
Style IPFS errors
samajammin May 6, 2021
2434459
fixes horizontal scroll on some pages
wackerow May 7, 2021
a2ad7fd
Merge pull request #36 from ethereum/category-selector
ryancreatescopy May 7, 2021
f367b73
adjusted tab active/inactive states
May 7, 2021
aab4c37
fixed some whacky layout
May 7, 2021
04f1a53
added an Info component to intro project preview
May 7, 2021
8b54f56
tweaked step title to make sure first is inline with progress bar
May 7, 2021
2adda17
updated tab hover state
May 7, 2021
fecbdf9
started adding elements to txReceipt component
May 7, 2021
dd1f886
Updated styling and got truncation working
May 7, 2021
4fef69b
updated checkmark background
May 7, 2021
8b9efdf
Removed buttons and did some v-if tweaks
May 7, 2021
cd4acac
review preview tabbed styling
wackerow May 7, 2021
56e0371
ts linting
wackerow May 7, 2021
8e0dbb3
previewMode bug fixes
wackerow May 7, 2021
304187f
Merge pull request #37 from ethereum/form-link-validation
samajammin May 7, 2021
12cfcd1
Merge branch 'develop' into tabbed-summary
samajammin May 7, 2021
e7494b9
Merge pull request #38 from ethereum/tabbed-summary
samajammin May 7, 2021
49bba14
Add loading state
samajammin May 7, 2021
4de9d3b
Merge pull request #35 from ethereum/application-success-page
samajammin May 7, 2021
1db2133
Merge branch 'develop' into button-theme-cleanup
samajammin May 7, 2021
14ab7ab
Merge pull request #34 from ethereum/button-theme-cleanup
samajammin May 7, 2021
a7b22c7
logic update
wackerow May 7, 2021
e36378f
Fetch round data
samajammin May 7, 2021
000718b
Add date utils
samajammin May 7, 2021
e109c2b
Use local timestamp for date comparison
samajammin May 7, 2021
3d3d6ab
Fetch round date on Landing page
samajammin May 7, 2021
87dddfd
Merge branch 'develop' into join-close
samajammin May 7, 2021
6ae4d6f
css linting
wackerow May 7, 2021
20c719a
ts linting
wackerow May 7, 2021
c46e44f
Merge pull request #48 from ethereum/css-lint-patch
samajammin May 7, 2021
b1d772e
Merge branch 'develop' into join-close
wackerow May 8, 2021
77bb831
Refactor to use computed properties & signUpDeadline
samajammin May 9, 2021
692aa6a
Fetch user & round data on App created
samajammin May 9, 2021
46a5883
Fix merge conflicts
samajammin May 9, 2021
d357a3b
Account for undefined state.currentRound
samajammin May 9, 2021
1383ed1
Fetch pre-round data in RoundStatusBanner
samajammin May 9, 2021
81c0e0b
Merge pull request #11 from ethereum/join-close
samajammin May 9, 2021
b486b3b
Remove hash inputs from IPFS upload
samajammin May 9, 2021
bdb22ed
Merge pull request #46 from ethereum/remove-admin-btns
samajammin May 9, 2021
070e96b
Tweaked styles for IPFS upload
May 10, 2021
a37b0ca
Merge branch 'develop' into landing-buttons
wackerow May 10, 2021
e9c2d5a
Update _theme.scss
wackerow May 10, 2021
9045728
Polish round criteria modal
wackerow May 10, 2021
7d27a4b
fix scrolling on criteria modal
May 11, 2021
bfe1c72
fixes mobile layout for joinLanding (overlapping image and text)
May 11, 2021
88235cd
Remove broken ENS code [Fixes #47]
samajammin May 11, 2021
f6af7c2
Remove stray character
samajammin May 11, 2021
921e6bf
Merge pull request #51 from ethereum/remove-ens
samajammin May 11, 2021
8c2df85
CriteriaModal mobile/scroll fixes
wackerow May 11, 2021
1bfc049
JoinLanding scroll/image layout fixes
wackerow May 11, 2021
011603d
removes conflicting unnecessary div scroll
wackerow May 11, 2021
503a079
Merge branch 'develop' into round-criteria-modal-fix
wackerow May 11, 2021
ccde7f8
Merge pull request #12 from ethereum/round-criteria-modal-fix
samajammin May 12, 2021
5a2bfc1
Content updated
May 12, 2021
4498ad7
Merge remote-tracking branch 'upstream/develop' into develop
samajammin May 12, 2021
0866280
Merge branch 'develop' of https://github.com/ethereum/clrfund into de…
samajammin May 12, 2021
e4c7525
Remove straggler characters
samajammin May 12, 2021
f6a4bbc
Merge pull request #55 from ethereum/join-full-registry-content
samajammin May 12, 2021
3035f5e
Merge branch 'develop' of https://github.com/ethereum/clrfund into de…
samajammin May 12, 2021
2d38509
adds spaces warning to join page and adds MACI explainer page
Apr 28, 2021
64b7ccb
added space for challenge period variable to projectadded page
Apr 28, 2021
685619a
WIP query recipients & maxRecipients to determine if registry is full
samajammin May 9, 2021
1f60387
Add recipientCount to getRegistryInfo
samajammin May 12, 2021
55fd2c3
Wire up JoinLanding to contract data
samajammin May 12, 2021
166095a
Merge pull request #26 from ethereum/join-warnings-advisories
samajammin May 12, 2021
97cc79e
Merge branch 'develop' into ipfs-upload
wackerow May 12, 2021
773a9f0
Merge pull request #45 from ethereum/tx-receipt-component
samajammin May 12, 2021
c74e63b
WIP addRecipient() tx
samajammin Apr 28, 2021
a9d7aba
Naive working implementation of addRecipient
samajammin Apr 28, 2021
68ede85
Remove dummy data file
samajammin Apr 28, 2021
2b97f7a
started setting up transaction states for application form
Apr 29, 2021
55eb6c4
added txReject messaging
Apr 29, 2021
bbe1d79
added desktop tx summary
Apr 29, 2021
cf3db70
Rename ButtonRow to FormNavigation
samajammin May 11, 2021
233c78a
Break out FormProgressWidget component
samajammin May 11, 2021
e089a13
Move recipient tx logic into RecipientSubmissionWidget
samajammin May 11, 2021
dc66a45
Pass tx hash to ProjectAdded
samajammin May 11, 2021
a12d098
Clean up RecipientSubmissionWidget
samajammin May 11, 2021
d149e39
Remove recipientId
samajammin May 12, 2021
ea85535
Clean up & rename TransactionReceipt
samajammin May 12, 2021
60ba49e
Add TransactionReceipt pending functionality
samajammin May 12, 2021
ab0b8a1
limits IPFS upload to 512kB
wackerow May 12, 2021
8e813f8
Add minor styles
samajammin May 12, 2021
08ad793
fix for landing page button widths
wackerow May 12, 2021
2370dc7
Merge branch 'develop' into landing-buttons
wackerow May 12, 2021
c97e000
Merge pull request #30 from ethereum/recipient-tx
samajammin May 12, 2021
ce04169
Merge pull request #33 from ethereum/landing-buttons
samajammin May 12, 2021
ef09430
Move IPFS link up to section description
samajammin May 12, 2021
4afbf17
Add copied UX feedback
samajammin May 13, 2021
a8ece50
Merge pull request #39 from ethereum/ipfs-upload
samajammin May 13, 2021
810160a
Add renderCopiedOrHash to TransactionReceipt
samajammin May 13, 2021
c285cba
Updated IPFS input description
May 13, 2021
0b9ad35
Added tooltip to IPFS hash area
May 13, 2021
f3f1955
added loader to joinlanding
May 13, 2021
d970f2d
fixes undefined image hash
wackerow May 13, 2021
ed17ab0
image upload preview aspect ratio
wackerow May 13, 2021
85ad401
restores mobile Join navigation
wackerow May 14, 2021
311c07e
try/catch wrapper for getRegistryInfo call
wackerow May 14, 2021
61d2993
small clean up
wackerow May 14, 2021
12068c8
extracts IpfsCopyWidget, reuses in review page
wackerow May 14, 2021
9079c33
fix link-row alignment
wackerow May 14, 2021
6ccf73c
Merge pull request #57 from ethereum/join-cleanup
samajammin May 14, 2021
395ed2e
Add computed property fallbacks
samajammin May 14, 2021
abb5505
Update /project-added route to /join/success
samajammin May 14, 2021
72b8a2d
Fix Toolip component
samajammin May 14, 2021
92c6a02
Merge pull request #58 from ethereum/recipient-flow-cleanup
samajammin May 14, 2021
d6e88bb
Update RecipientSubmissionWidget.vue
wackerow May 17, 2021
3b188e6
Merge pull request #64 from ethereum/linting
wackerow May 17, 2021
42fb9e2
fixes address wrapping on mobile [Fixes #41]
wackerow May 18, 2021
8918237
Merge pull request #65 from ethereum/wrapping-#41
samajammin May 18, 2021
16b96a9
Fix maxRecipients calculation
samajammin May 18, 2021
3064e30
Merge pull request #69 from ethereum/max-recipients
samajammin May 18, 2021
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
191 changes: 178 additions & 13 deletions contracts/scripts/deployTestRound.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ async function main() {
poolContributor,
recipient1,
recipient2,
recipient3,
recipient4,
recipient5,
recipient6,
recipient7,
recipient8,
recipient9,
contributor1,
contributor2,
] = await ethers.getSigners()
Expand Down Expand Up @@ -52,8 +59,8 @@ async function main() {
)
const maciParameters = await MaciParameters.read(maciFactory)
maciParameters.update({
signUpDuration: 300, // 5 minutes
votingDuration: 300,
signUpDuration: 30000, // 5 minutes
votingDuration: 30000,
})
await factory.setMaciParameters(...maciParameters.values())

Expand All @@ -70,33 +77,191 @@ async function main() {
)
await userRegistry.addUser(contributor1.getAddress())
await userRegistry.addUser(contributor2.getAddress())


// Add dummy recipients
// TODO add better dummy data
const metadataRecipient1 = {
name: 'Commons Simulator: Modeling Sustainable Funding for Public Good',
name: 'Commons Simulator',
description: 'Funding open-source projects & other public goods is the killer app of blockchain tech. Giveth & BlockScience are joining forces to build the Commons Stack: a modular library of well engineered components that can be used to create economic models for projects that are creating value, yet have trouble finding sustainable business models.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Modeling Sustainable Funding for Public Good',
category: 'Data',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}

const metadataRecipient2 = {
name: 'Synthereum: synthetic assets with liquidity pools to bridge traditional and digital finance',
name: 'Synthereum',
description: 'The aim of our synthetic assets is to help creating fiat-based wallet and applications on any local currencies, and help to create stock, commodities portfolio in order to bring more traditional users within the DeFi ecosystem.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Synthetic assets with liquidity pools to bridge traditional and digital finance.',
category: 'Content',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}

const metadataRecipient3 = {
name: 'Commons Simulator',
description: 'Funding open-source projects & other public goods is the killer app of blockchain tech. Giveth & BlockScience are joining forces to build the Commons Stack: a modular library of well engineered components that can be used to create economic models for projects that are creating value, yet have trouble finding sustainable business models.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Modeling Sustainable Funding for Public Good',
category: 'Data',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient4 = {
name: 'Synthereum',
description: 'The aim of our synthetic assets is to help creating fiat-based wallet and applications on any local currencies, and help to create stock, commodities portfolio in order to bring more traditional users within the DeFi ecosystem.',
imageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Synthetic assets with liquidity pools to bridge traditional and digital finance.',
category: 'Content',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient5 = {
name: 'Commons Simulator',
description: 'Funding open-source projects & other public goods is the killer app of blockchain tech. Giveth & BlockScience are joining forces to build the Commons Stack: a modular library of well engineered components that can be used to create economic models for projects that are creating value, yet have trouble finding sustainable business models.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Modeling Sustainable Funding for Public Good',
category: 'Data',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient6 = {
name: 'Synthereum',
description: 'The aim of our synthetic assets is to help creating fiat-based wallet and applications on any local currencies, and help to create stock, commodities portfolio in order to bring more traditional users within the DeFi ecosystem.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Synthetic assets with liquidity pools to bridge traditional and digital finance.',
category: 'Content',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient7 = {
name: 'Commons Simulator',
description: 'Funding open-source projects & other public goods is the killer app of blockchain tech. Giveth & BlockScience are joining forces to build the Commons Stack: a modular library of well engineered components that can be used to create economic models for projects that are creating value, yet have trouble finding sustainable business models.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Modeling Sustainable Funding for Public Good',
category: 'Data',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient8 = {
name: 'Synthereum',
description: 'The aim of our synthetic assets is to help creating fiat-based wallet and applications on any local currencies, and help to create stock, commodities portfolio in order to bring more traditional users within the DeFi ecosystem.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Synthetic assets with liquidity pools to bridge traditional and digital finance.',
category: 'Content',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}
const metadataRecipient9 = {
name: 'Commons Simulator',
description: 'Funding open-source projects & other public goods is the killer app of blockchain tech. Giveth & BlockScience are joining forces to build the Commons Stack: a modular library of well engineered components that can be used to create economic models for projects that are creating value, yet have trouble finding sustainable business models.',
imageHash: 'QmbMP2fMiy6ek5uQZaxG3bzT9gSqMWxpdCUcQg1iSeEFMU',
tagline: 'Modeling Sustainable Funding for Public Good',
category: 'Data',
problemSpace: 'metadata.problemSpace',
plans: 'metadata.plans',
teamName: 'metadata.teamName',
teamDescription: 'metadata.teamDescription',
githubUrl: 'https://github.com/',
radicleUrl: 'https://radicle.com/',
websiteUrl: 'https://website.com/',
twitterUrl: 'https://twitter.com/',
discordUrl: 'https://discord.com/',
bannerImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
thumbnailImageHash: 'QmaDy75RkRVtZcbYeqMDLcCK8dDvahfik68zP7FbpxvD2F',
}

const recipientRegistryType = process.env.RECIPIENT_REGISTRY_TYPE || 'simple'
const recipientRegistryAddress = await factory.recipientRegistry()
if (recipientRegistryType === 'simple') {
const recipientRegistry = await ethers.getContractAt(
'SimpleRecipientRegistry',
recipientRegistryAddress,
)
await recipientRegistry.addRecipient(
recipient1.getAddress(),
JSON.stringify(metadataRecipient1),
)
await recipientRegistry.addRecipient(
recipient2.getAddress(),
JSON.stringify(metadataRecipient2),
)
await recipientRegistry.addRecipient(recipient1.getAddress(), JSON.stringify(metadataRecipient1))
await recipientRegistry.addRecipient(recipient2.getAddress(), JSON.stringify(metadataRecipient2))
await recipientRegistry.addRecipient(recipient3.getAddress(), JSON.stringify(metadataRecipient3))
await recipientRegistry.addRecipient(recipient4.getAddress(), JSON.stringify(metadataRecipient4))
await recipientRegistry.addRecipient(recipient5.getAddress(), JSON.stringify(metadataRecipient5))
await recipientRegistry.addRecipient(recipient6.getAddress(), JSON.stringify(metadataRecipient6))
await recipientRegistry.addRecipient(recipient7.getAddress(), JSON.stringify(metadataRecipient7))
await recipientRegistry.addRecipient(recipient8.getAddress(), JSON.stringify(metadataRecipient8))
await recipientRegistry.addRecipient(recipient9.getAddress(), JSON.stringify(metadataRecipient9))
} else if (recipientRegistryType === 'optimistic') {
const recipientRegistry = await ethers.getContractAt(
'OptimisticRecipientRegistry',
Expand Down
1 change: 1 addition & 0 deletions vue-app/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VUE_APP_ETHEREUM_API_URL=http://localhost:18545
VUE_APP_MAINNET_PROVIDER_URL=https://mainnet.infura.io/v3/{api-key}
VUE_APP_BLOCK_EXPLORER=https://etherscan.io/tx/
VUE_APP_IPFS_GATEWAY_URL=https://ipfs.io

Expand Down
1 change: 1 addition & 0 deletions vue-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"ethers": "^5.0.17",
"gun": "https://github.com/amark/gun",
"humanize-duration": "^3.25.1",
"ipfs-mini": "^1.1.5",
"is-ipfs": "^2.0.0",
"luxon": "^1.26.0",
"maci-domainobjs": "~0.7.4",
Expand Down
Loading