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

CNS-169: create module subscription #328

Merged
merged 11 commits into from
Mar 3, 2023

Commits on Mar 2, 2023

  1. CNS-169: create module subscription

    command:
        ignite scaffold module subscription
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    cb24608 View commit details
    Browse the repository at this point in the history
  2. CNS-169: adjust Plan methods GetPlan(),PutPlan()

    GetPlan() - drop block arg, because we always use current block.
    PutPlan() - do not return the Plan, because we drop it anway.
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4cdd426 View commit details
    Browse the repository at this point in the history
  3. CNS-169: setup module subscription in app.go

    Porperly initialize the module in app.go, and add deps account,bank.
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    8ebc314 View commit details
    Browse the repository at this point in the history
  4. CNS-169: scaffold type subscription

    ignite scaffold type subscription \
        creator:string \
        consumer:string \
        block:uint \
        plan_index:string \
        plan_block:uint \
        is_yearly:bool \
        expiry_time:uint \
        usedCU:uint \
        remainingCU:uint \
        --no-message \
        --module subscription
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    331411f View commit details
    Browse the repository at this point in the history
  5. CNS-169: scaffold message subscribe

    ignite scaffold message subscribe \
        consumer:string
        index:string
        is_yearly:bool
        --module subscription
        --desc "Subscribe to a service plan"
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    4154948 View commit details
    Browse the repository at this point in the history
  6. CNS-169: implement message subscribe

    To add a subscription:
      lavad tx subscription subscribe [CONSUMER] [PLAN] [IS_YEARLY] [flags]
    
    Where:
      CONSUMER:  address of the consumer that will use this subscription
      PLAN:      unique index of the plan to subscribe to
      IS_YEARLY: whether the subscription is for a year (for discounted rate)
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    f3d1300 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    70b1629 View commit details
    Browse the repository at this point in the history
  8. CNS-175: scaffold query current-subscription

    ignite scaffold query CurrentSubscription \
        consumer:string \
        --module subscription \
        --desc "Query current subscription to a service plan" \
        --response sub:Subscription
    orenl-lava committed Mar 2, 2023
    Configuration menu
    Copy the full SHA
    aac59ce View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    4544569 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Merge pull request #329 from lavanet/CNS-169-implement-module-subscri…

    …ption
    
    CNS-169 implement module subscription
    Yaroms committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    1075f17 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #330 from lavanet/CNS-175-implement-query-current-…

    …subscription
    
    CNS-175 implement query current subscription
    Yaroms committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    9b12eab View commit details
    Browse the repository at this point in the history