how to implement wtfipluralqf update
for utkarshdubey.icon
cureent implemet is working https://wtfipluralqf.decartography.com/
source: https://github.com/DeCartography/wtf.DeCartography-Quadratic-Funding
What you will be doing.
First, I want you to create the interactive simulation part of the Plural QF.
1. first, I want you to draw a Venn diagram with a specified number of nodes in each Venn diagram.
This data is just a visualization of what DeCartography provides as an oracle
code:sample.json
var sets = [
{"sets":0, "label": "Blockchain", "size": 12}
{"sets": 1, "label": "IPFS", "size": 9},.
{"sets": 2, "label": "Open Source", "size": 15}, {"sets": 3, "label": "Blockchain", "size": 12}, {"sets": 2, "label": "Open Source", "size": 9}
{"sets": 3, "label": "NFT", "size": 2}, {"sets": 4, "label": "IPFS", "size": 9}
{"sets": 4, "label": "Ethereum", "size": 14}, {"sets": 5, "label": "Open Source", "size": 15}
{"sets": 5, "label": "L2", "size": 2}, {"sets": [0, "label": "L2", "size": 2}
{"sets": 0, 1, "size": 3}
{"sets": 0, 2, "size": 3}
{"sets": 0, 3, "size": 1}, {"sets": 0, 1, "size": 2}
{"sets": 0, 4, "size": 2}, {"sets": 0, 4, "size": 2}
{"sets": 0, 5, "size": 0}, {"sets": 1, 3, "size": 1}
{"sets": 1, 2, "size": 2}, {"sets": 1, 2, "size": 2}
{"sets": 1, 4, "size": 3}, {"sets": 1, 4, "size": 3}
{"sets": 1, 5, "size": 0}, {"sets": 1, 4, "size": 3}
{"sets": 2, 4, "size": 5}, {"sets": 1, 4, "size": 3}
{"sets": 2, 5, "size": 0}, {"sets": 3, 5, "size": 0}
{"sets": 3, 4, "size": 1}, {"sets": 3, 4, "size": 0}
{"sets": 3, 5, "size": 0}, {"sets": 4, 5, "size": 0}
{"sets": 4, 5, "size": 1}
];
To draw more than four Venn diagrams, go to https://github.com/benfred/venn.js
https://gyazo.com/4f91bb1f5ee9c214ffd0e46fb251de4d
To draw a node in a Venn diagram, https://github.com/christophe-g/d3-venn
https://gyazo.com/7f006222e7c30f0361a1260b9b5ec3f3
I think the JSON (data structure) over here is the same as the one above, but I don't know much about it
2. to make the value of the vote amount for each node a variable that can be changed dynamically with the slider element of the form
3. implementation of Plural QF simulation, eventually need to come up with funding amount
https://github.com/Jmiller4/plural-qf
Click on each node or click on the agent's button at the bottom, and a UI will pop up where you can simulate the voting amount for that agent
This UI has a slider to change the contribution of each agent
The graph shows how the funding amount changes when the contribution is changed by =+1 or =-1. x is the contribution and y is the funding amount.
The slope of this graph depends on the position of each agent on the social graph.
https://gyazo.com/8526018571f4494441431a61d348aac6
$ python3 pluralqf.py cocm 0],1,2,2,3,4,5,[5,6" "10, 1, 20, 10, 0, 15, 10
181.00492455253504
[[0],[1,2],[2,3,4,5],[5,6]], where 0 is the most remote location.
https://gyazo.com/1157b63d15813737c6ad5c4db594948e
code https://github.com/tkgshn/plural-qf/blob/main/differentamount_Simulation.py
This graph simulates doing =+1 100 times for each agent, assuming [[[0],[1,2],[2,3,4,5],[5,6]]" "[10, 1, 20, 10, 0, 15, 10]
You can read that they are decaying.
https://gyazo.com/d540d5054baf0189dbf44e1dca1dcc94
This graph should be used when simulating each agent
Show UI to calculate the overall funding amount.
https://gyazo.com/10a606f862b822bde0fb2e737e93a4d5
https://gyazo.com/7c53f928ec550cbe121e66d257e8a71b
Maybe give out information on the social graph.