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

Explore: show share allocation on cards #65

Open
fadeev opened this issue Apr 27, 2022 · 2 comments · May be fixed by #154
Open

Explore: show share allocation on cards #65

fadeev opened this issue Apr 27, 2022 · 2 comments · May be fixed by #154
Assignees
Labels

Comments

@fadeev
Copy link
Contributor

fadeev commented Apr 27, 2022

Screen Shot 2022-04-27 at 11 37 09

We already have the layout for this implemented, now we need to connect it to the blockchain.

<ProjectCardShareAllocation
v-if="showAllocation"
class="project-card__row"
:campaign-summary="campaignSummary"
/>

You can use the following PR to test the functionality: ignite/cli#2416 (or when it's merged).

ignite n chain publish https://github.com/ilgooz/mars --shares 20%foo,50%staking

https://api.nightly.starport.network/tendermint/spn/campaign/campaign_summary/14

{
  "campaignSummary": {
    "campaign": {
      "campaignID": "14",
      "campaignName": "mars",
      "coordinatorID": "7",
      "mainnetID": "0",
      "mainnetInitialized": false,
      "totalSupply": [
      ],
      "allocatedShares": [
        {
          "denom": "s/foo",
          "amount": "10"
        }
      ],
      "metadata": null
    },
    "hasMostRecentChain": true,
    "mostRecentChain": {
      "launchID": "14",
      "launchTriggered": false,
      "sourceURL": "https://github.com/ilgooz/mars",
      "sourceHash": "cfd85dc43061cc3e107b155330acbac1234e2e32",
      "requestNb": "1",
      "validatorNb": "0"
    },
    "incentivized": false,
    "rewards": [
    ],
    "rewardsDistributed": false,
    "previousRewards": [
    ]
  }
}
@fadeev fadeev added the API label Apr 27, 2022
@fadeev
Copy link
Contributor Author

fadeev commented Apr 27, 2022

The "Past" should show all allocations from previous testnets in the same project (campaign) aggregated.

@ilgooz
Copy link
Collaborator

ilgooz commented Apr 27, 2022

ignite/cli#2416 merged

--shares 20%foo,50%staking

@fadeev fadeev changed the title Show share allocation on cards on the Explore page Explore: show share allocation on cards May 1, 2022
@fadeev fadeev added this to the Incentivized Testnet milestone May 5, 2022
@Matthews3301 Matthews3301 self-assigned this Jun 7, 2022
@Matthews3301 Matthews3301 linked a pull request Jun 8, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants