Skip to content

Conversation

@Pantani
Copy link
Collaborator

@Pantani Pantani commented Mar 8, 2022

close #2073

Description

Create starport network profile command to show all address info, like vouchers, shares, and descriptions.

How to test

  • Show the global address profile:
ignite network --nightly profile
  • Show the profile based on a campaign ID:
ignite network --nightly profile 36

@Pantani Pantani self-assigned this Mar 8, 2022
@Pantani Pantani marked this pull request as ready for review March 18, 2022 18:57
…le-cmd

# Conflicts:
#	starport/pkg/goanalysis/goanalysis_test.go
#	starport/services/network/publish.go
@ilgooz ilgooz added this to the T1 milestone Mar 21, 2022
@lumtis lumtis self-assigned this Jul 26, 2022
@lumtis lumtis modified the milestones: T1, Priority Jul 26, 2022
@lumtis lumtis marked this pull request as draft July 26, 2022 12:24
Copy link
Contributor

@lumtis lumtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding some comments for my own usage

@lumtis lumtis marked this pull request as ready for review July 26, 2022 13:50
@lumtis
Copy link
Contributor

lumtis commented Jul 26, 2022

The output UX subject to change but I think it's a good base for the command initialization

To test:

ignite chain serve -c config_2.yml -r

Use spnd for campaign and vouchers minting

spnd tx profile create-coordinator --from alice -y --node http://0.0.0.0:26661
spnd tx profile update-coordinator-description --details foo --identity bar --website foo.com --from alice -y --node http://0.0.0.0:26661
spnd tx campaign create-campaign orbit 1000000orbit --from alice -y --node http://0.0.0.0:26661
spnd tx campaign mint-vouchers 1 50000orbit --from alice -y --node http://0.0.0.0:26661
spnd tx campaign redeem-vouchers 1 2000v/1/orbit --from alice -y
ignite account import testnet // import the testnet account from spnd
ignite network  profile 1  --spn-node-address http://0.0.0.0:26661 --from testnet
Address: spn1ezptsm3npn54qx9vvpah4nymre59ykr9exx2ul
CampaignID: 1
Identity: bar
Website: foo.com
Details: foo
Vouchers:
- denom: v/1/orbit
  amount: "48000"
Shares:
- denom: s/orbit
  amount: "2000"

@lumtis
Copy link
Contributor

lumtis commented Jul 26, 2022

Ready for review @ilgooz @tbruyelle @jeronimoalbi @aljo242

aljo242
aljo242 previously approved these changes Jul 26, 2022
Copy link
Contributor

@aljo242 aljo242 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lumtis lumtis self-requested a review July 26, 2022 15:04
@lumtis
Copy link
Contributor

lumtis commented Jul 26, 2022

lgtm

Just fixed some conflicts

@lumtis lumtis merged commit db73f42 into develop Jul 27, 2022
@lumtis lumtis deleted the feat/network-profile-cmd branch July 27, 2022 08:03
Jchicode pushed a commit to Jchicode/cli that referenced this pull request Aug 9, 2023
* add the profile command

* add profile queries

* profile command

* add network profile method and print into the cmd

* import sort

* fix unit tests for network publish command

* use profile interface

* fix wrong coord address

* grpc error responses

* update spn and mocks

* fix the profile command and balances

* remove omitted fields

* fix unit tests

* fix unit tests

* apply comment suggestions regarding code style

* handle not found address

* fix imports

* fix imports 2

* some fixes =

* fix cli

* some fixes

* goimport

* fix test

Co-authored-by: ltacker <lucas.bertrand.22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cmd/network: implement profile command

5 participants