# SNS aggregator release

**URL:** <https://forum.dfinity.org/t/sns-aggregator-release/22249>\
**Category:** Developers\
**Tags:** nns, sns\
**Created:** [August 18, 2023, 9:14am UTC](https://forum.dfinity.org/t/sns-aggregator-release/22249 "2023-08-18T09:14:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitdivine](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bitdivine/32/246_2.png) [@bitdivine](https://forum.dfinity.org/u/bitdivine)\
**Post date:** [August 18, 2023, 9:14am UTC](https://forum.dfinity.org/t/sns-aggregator-release/22249/1 "2023-08-18T09:14:20Z")

</div>

The GIX team will be submitting an upgrade proposal for the SNS aggregator today.

Update: The proposal is [number 124250](https://nns.ic0.app/proposal/?u=qoctq-giaaa-aaaaa-aaaea-cai&proposal=124250)

## Context: What is the SNS aggregator?

[The aggregator](https://3r4gx-wqaaa-aaaaq-aaaia-cai.ic0.app/) collects information on all deployed SNS and re-publishes aggregate values as certified query calls. This data is intended for use by any canister that wishes to provide dashboards. The data will typically be updated about once per minute. Collecting the data from this aggregator will typically be much faster than collecting the same data directly from the SNSs.

## Change Log

- Ensure that the last paginated entry is incomplete, as requested by the nns-dapp front end developers.
- Update the index.html when it has changed.

## Preview

The release candidate can be previewed here: [https://otgyv-wyaaa-aaaak-qcgba-cai.icp0.io/](https://otgyv-wyaaa-aaaak-qcgba-cai.icp0.io/)

---

<div class="post-metadata">

**Author:** ![timo](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/timo/32/5543_2.png) [@timo](https://forum.dfinity.org/u/timo)\
**Post date:** [March 6, 2024, 1:37pm UTC](https://forum.dfinity.org/t/sns-aggregator-release/22249/2 "2024-03-06T13:37:54Z")

</div>

What does “lifecycle” refer to in the returned json? How do I interpret values 2,3,4,5?

---

<div class="post-metadata">

**Author:** ![peterparker](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@peterparker](https://forum.dfinity.org/u/peterparker)\
**Post date:** [March 6, 2024, 1:40pm UTC](https://forum.dfinity.org/t/sns-aggregator-release/22249/3 "2024-03-06T13:40:23Z")

</div>

> [@timo](#):
>
> How do I interpret values 2,3,4,5?

There you go: [nns-dapp/rs/sns\_aggregator/src/index.html at 79073e9ed9958509e3d3ede90bfffd9481b539cb · dfinity/nns-dapp · GitHub](https://github.com/dfinity/nns-dapp/blob/79073e9ed9958509e3d3ede90bfffd9481b539cb/rs/sns_aggregator/src/index.html#L492)

```auto
 const lifecycleText = (lifeCycle) => {
        switch (lifeCycle) {
          case 1:
            return "Pending";
          case 2:
            return "Open";
          case 3:
            return "Committed";
          case 4:
            return "Aborted";
          case 5:
            return "Adopted";
          default:
            return "Unspecified";
        }
      };

```

PS.: The above switch renders the badges on the [landing page](https://3r4gx-wqaaa-aaaaq-aaaia-cai.icp0.io/) of the aggregator

 ![Capture d’écran 2024-03-06 à 14.43.22](https://us1.discourse-cdn.com/flex023/uploads/dfn/original/3X/4/b/4b859dc51bec777638a98f2750d998b66be49133.jpeg)

---

<div class="post-metadata">

**Author:** ![bitdivine](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/bitdivine/32/246_2.png) [@bitdivine](https://forum.dfinity.org/u/bitdivine)\
**Post date:** [March 6, 2024, 2:47pm UTC](https://forum.dfinity.org/t/sns-aggregator-release/22249/4 "2024-03-06T14:47:45Z")

</div>

The lifecycle values are defined here:  
[ic/rs/sns/swap/src/gen/ic\_sns\_swap.pb.v1.rs at master · dfinity/ic · GitHub](https://github.com/dfinity/ic/blob/master/rs/sns/swap/src/gen/ic_sns_swap.pb.v1.rs#L2190) (link changed to the specific line of code)

```auto
#[repr(i32)]
pub enum Lifecycle {
    /// The canister is incorrectly configured. Not a real lifecycle state.
    Unspecified = 0,
    ...

```

As far as I know they are not provided in a .did file anywhere. The NNS team has however generally been very helpful when it comes to adding such information to `.did` files on request. We should probably ask them kindly to do so, please! 🙂
