GoodDollar / GoodCollective

Monorepo for GoodCollective (Segmented UBI and Direct Payments Pool)
MIT License
5 stars 4 forks source link

Create Segmented UBI pool contract + SDK #199

Open decentralauren opened 7 months ago

decentralauren commented 7 months ago

Business Description

Create Segmented UBI pool contracts to support the Red Tent UBI MVP, and to act as the initial contracts for the Segmented UBI SDK

Detailed Description

For the Red Tent Segmented UBI, the following pools should be created.

Pool 1: Red Tent Women in Colombia

RedTent

Pool Description The Red Tent Women’s Basic Income is designed to flow money unencumbered and unconditionally from women and allies who have it to women who need it. Red Tent’s goal is to create a decentralized, automated and highly personalized system that measures and improves collaboration and wellbeing in communities. Women are the keepers of family and community, yet continue to be disproportionately affected by lack of access to capital and influence in all systems.

Link to Website: https://redtent.io/ Note: Website will be live for launch. No other socials to link to.

Pool Parameters

Pool Qualifications

Pool 2: Red Tent Women in Nigeria

RedTent

Pool Description The Red Tent Women’s Basic Income is designed to flow money unencumbered and unconditionally from women and allies who have it to women who need it. Red Tent’s goal is to create a decentralized, automated and highly personalized system that measures and improves collaboration and wellbeing in communities. Women are the keepers of family and community, yet continue to be disproportionately affected by lack of access to capital and influence in all systems.

Link to Website: https://redtent.io/ Note: Website will be live for launch. No other socials to link to.

Pool Parameters

Pool Qualifications

Technical implementation

Acceptance Criteria

decentralauren commented 7 months ago

@sirpy finalizing this with Galia, but wanted to put on your radar :)

L03TJ3 commented 5 months ago

@sirpy would be helpful if the claim transaction logs for the pools have a claim-event similar to gd-ubi contract

this would make easier to build a 'recent claims' list, based on event hash (eg. like done in wallet for otpl events)

Just for reference:

export type PoolDetails = {
  claimAmount?: BigNumber;
  claimTime: Date; (currently there exists currentDay, periodStart. maybe can be combined in one method)
  claimCall: ("the current method name for UBI is 'claim'");
  contract/poolName?: string;
  isRegistered: boolean;
  description?: string (short subtitle copy, eg: Your Daily Ubi)
  icon?: string || url
};
sirpy commented 5 months ago

@decentralauren do we have tickets on the UI updates required for goodcollective to support this pools?

sirpy commented 5 months ago

@L03TJ3 i've released v1.1.0 of goodcollective-contracts and goodcollective-sdk the sdk has a method getMemberUBIPools (see scripts/createPool) on how it is used. regarding pooldescription icon etc, these should be read and cached by the app itself. getMemberUBIPools returns the ipfs hash of the json file with these details.

decentralauren commented 5 months ago

@sirpy they are WIP and will be added to the epic that this ticket also belongs to: https://github.com/GoodDollar/GoodCollective/issues/192

sirpy commented 4 months ago

@decentralauren Also need the following details of the pools

   name: 'Test single donation with swap (Real G$)',
    description:
      'This Collective directly supports smallholder farmers around Kenya’s Kakamega forest. These farmers are acting as nurseries, growing and nurturing native trees to maturity for subsequent reforestation. In partnership with Silvi.',
    email: 'myemail@gmail.com',
    website: 'https://www.silvi.earth',
    twitter: 'https://twitter.com/SilviProtocol',
    instagram: 'https://instagram.com/x',
    threads: '',
    headerImage:
      'https://uploads-ssl.webflow.com/639e611ba0716a170111fe96/65032c75ac7830faf70f9469_FooterBackground.jpg',
    logo: 'https://uploads-ssl.webflow.com/639e611ba0716a170111fe96/65032c4586b18e3e276db342_SilviLogo.png',
    images: [
      'https://uploads-ssl.webflow.com/639e611ba0716a170111fe96/6507cb24ffa8a438ccf13d70_Screen%20Shot%202023-09-17%20at%208.59.00%20PM-p-500.png',
      'https://uploads-ssl.webflow.com/639e611ba0716a170111fe96/650352d39dde89c0fd676908_RuralPlanting.jpg',
    ],
decentralauren commented 4 months ago

@sirpy working on it this week - will put all values in this notion ticket

sirpy commented 3 months ago

@decentralauren notion ticket still not filled

decentralauren commented 3 months ago

@sirpy working on it.

decentralauren commented 2 months ago

@sirpy updated in description and the notion ticket. Only thing missing is the G$ claim amount per day. Please put a placeholder of 800G$ for now and we will update later.

decentralauren commented 1 month ago

@sirpy are the production pools ready? If so I can fund them with a small amount so we can test in prod next week. Please share the contract addresses w @L03TJ3 if so.