@chainstream-io/sdk 0.1.17 → 0.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -132,12 +132,54 @@ var CEL_FIELD_MAPPINGS = {
132
132
  "subscribeTokenHolders": {
133
133
  "tokenAddress": "a",
134
134
  "holders": "h",
135
- "top100Amount": "t100a",
136
- "top10Amount": "t10a",
135
+ "top100HoldersAmount": "t100a",
136
+ "top50HoldersAmount": "t50a",
137
+ "top10HoldersAmount": "t10a",
137
138
  "top100Holders": "t100h",
139
+ "top50Holders": "t50h",
138
140
  "top10Holders": "t10h",
139
- "top100Ratio": "t100r",
140
- "top10Ratio": "t10r",
141
+ "top100HoldersRatio": "t100r",
142
+ "top50HoldersRatio": "t50r",
143
+ "top10HoldersRatio": "t10r",
144
+ "creatorsHolders": "ch",
145
+ "creatorsAmount": "ca",
146
+ "creatorsRatio": "cr",
147
+ "balanceTagFreshHolders": "btfh",
148
+ "balanceTagFreshAmount": "btfa",
149
+ "balanceTagFreshRatio": "btfr",
150
+ "balanceTagSandwichHolders": "btsh",
151
+ "balanceTagSandwichAmount": "btsa",
152
+ "balanceTagSandwichRatio": "btsr",
153
+ "balanceTagBundleHolders": "btbh",
154
+ "balanceTagBundleAmount": "btba",
155
+ "balanceTagBundleRatio": "btbr",
156
+ "balanceTagSniperHolders": "btsnh",
157
+ "balanceTagSniperAmount": "btsna",
158
+ "balanceTagSniperRatio": "btsnr",
159
+ "balanceTagDevHolders": "btdh",
160
+ "balanceTagDevAmount": "btda",
161
+ "balanceTagDevRatio": "btdr",
162
+ "balanceTagProHolders": "btph",
163
+ "balanceTagProAmount": "btpa",
164
+ "balanceTagProRatio": "btpr",
165
+ "balanceTagInsiderHolders": "btih",
166
+ "balanceTagInsiderAmount": "btia",
167
+ "balanceTagInsiderRatio": "btir",
168
+ "balanceTagSmartHolders": "btsmh",
169
+ "balanceTagSmartAmount": "btsma",
170
+ "balanceTagSmartRatio": "btsmr",
171
+ "balanceTagKolHolders": "btkh",
172
+ "balanceTagKolAmount": "btka",
173
+ "balanceTagKolRatio": "btkr",
174
+ "balanceTagPhishingHolders": "btphh",
175
+ "balanceTagPhishingAmount": "btpha",
176
+ "balanceTagPhishingRatio": "btphr",
177
+ "balanceTagBluechipHolders": "btblh",
178
+ "balanceTagBluechipAmount": "btbla",
179
+ "balanceTagBluechipRatio": "btblr",
180
+ "balanceTagRatHolders": "btrh",
181
+ "balanceTagRatAmount": "btra",
182
+ "balanceTagRatRatio": "btrr",
141
183
  "timestamp": "ts"
142
184
  },
143
185
  // New token subscription fields
@@ -475,15 +517,54 @@ var StreamApi = class {
475
517
  return this.subscribe(channel, (data) => callback({
476
518
  tokenAddress: data.a,
477
519
  holders: data.h,
478
- top100Amount: this.formatScientificNotation(data.t100a),
479
- top10Amount: this.formatScientificNotation(data.t10a),
520
+ top100HoldersAmount: this.formatScientificNotation(data.t100a),
521
+ top50HoldersAmount: this.formatScientificNotation(data.t50a),
522
+ top10HoldersAmount: this.formatScientificNotation(data.t10a),
480
523
  top100Holders: data.t100h,
524
+ top50Holders: data.t50h,
481
525
  top10Holders: data.t10h,
482
- top100Ratio: this.formatScientificNotation(data.t100r),
483
- top10Ratio: this.formatScientificNotation(data.t10r),
526
+ top100HoldersRatio: this.formatScientificNotation(data.t100r),
527
+ top50HoldersRatio: this.formatScientificNotation(data.t50r),
528
+ top10HoldersRatio: this.formatScientificNotation(data.t10r),
484
529
  creatorsHolders: data.ch,
485
530
  creatorsAmount: this.formatScientificNotation(data.ca),
486
531
  creatorsRatio: this.formatScientificNotation(data.cr),
532
+ balanceTagFreshHolders: data.btfh,
533
+ balanceTagFreshAmount: this.formatScientificNotation(data.btfa),
534
+ balanceTagFreshRatio: this.formatScientificNotation(data.btfr),
535
+ balanceTagSandwichHolders: data.btsh,
536
+ balanceTagSandwichAmount: this.formatScientificNotation(data.btsa),
537
+ balanceTagSandwichRatio: this.formatScientificNotation(data.btsr),
538
+ balanceTagBundleHolders: data.btbh,
539
+ balanceTagBundleAmount: this.formatScientificNotation(data.btba),
540
+ balanceTagBundleRatio: this.formatScientificNotation(data.btbr),
541
+ balanceTagSniperHolders: data.btsnh,
542
+ balanceTagSniperAmount: this.formatScientificNotation(data.btsna),
543
+ balanceTagSniperRatio: this.formatScientificNotation(data.btsnr),
544
+ balanceTagDevHolders: data.btdh,
545
+ balanceTagDevAmount: this.formatScientificNotation(data.btda),
546
+ balanceTagDevRatio: this.formatScientificNotation(data.btdr),
547
+ balanceTagProHolders: data.btph,
548
+ balanceTagProAmount: this.formatScientificNotation(data.btpa),
549
+ balanceTagProRatio: this.formatScientificNotation(data.btpr),
550
+ balanceTagInsiderHolders: data.btih,
551
+ balanceTagInsiderAmount: this.formatScientificNotation(data.btia),
552
+ balanceTagInsiderRatio: this.formatScientificNotation(data.btir),
553
+ balanceTagSmartHolders: data.btsmh,
554
+ balanceTagSmartAmount: this.formatScientificNotation(data.btsma),
555
+ balanceTagSmartRatio: this.formatScientificNotation(data.btsmr),
556
+ balanceTagKolHolders: data.btkh,
557
+ balanceTagKolAmount: this.formatScientificNotation(data.btka),
558
+ balanceTagKolRatio: this.formatScientificNotation(data.btkr),
559
+ balanceTagPhishingHolders: data.btphh,
560
+ balanceTagPhishingAmount: this.formatScientificNotation(data.btpha),
561
+ balanceTagPhishingRatio: this.formatScientificNotation(data.btphr),
562
+ balanceTagBluechipHolders: data.btblh,
563
+ balanceTagBluechipAmount: this.formatScientificNotation(data.btbla),
564
+ balanceTagBluechipRatio: this.formatScientificNotation(data.btblr),
565
+ balanceTagRatHolders: data.btrh,
566
+ balanceTagRatAmount: this.formatScientificNotation(data.btra),
567
+ balanceTagRatRatio: this.formatScientificNotation(data.btrr),
487
568
  timestamp: data.ts
488
569
  }), filter, "subscribeTokenHolders");
489
570
  }
@@ -772,22 +853,148 @@ var StreamApi = class {
772
853
  result.holder.holders = item.h.h;
773
854
  }
774
855
  if (item.h.t100a) {
775
- result.holder.top100Amount = this.formatScientificNotation(item.h.t100a);
856
+ result.holder.top100HoldersAmount = this.formatScientificNotation(item.h.t100a);
857
+ }
858
+ if (item.h.t50a) {
859
+ result.holder.top50HoldersAmount = this.formatScientificNotation(item.h.t50a);
776
860
  }
777
861
  if (item.h.t10a) {
778
- result.holder.top10Amount = this.formatScientificNotation(item.h.t10a);
862
+ result.holder.top10HoldersAmount = this.formatScientificNotation(item.h.t10a);
779
863
  }
780
864
  if (item.h.t100h) {
781
865
  result.holder.top100Holders = item.h.t100h;
782
866
  }
867
+ if (item.h.t50h) {
868
+ result.holder.top50Holders = item.h.t50h;
869
+ }
783
870
  if (item.h.t10h) {
784
871
  result.holder.top10Holders = item.h.t10h;
785
872
  }
786
873
  if (item.h.t100r) {
787
- result.holder.top100Ratio = this.formatScientificNotation(item.h.t100r);
874
+ result.holder.top100HoldersRatio = this.formatScientificNotation(item.h.t100r);
875
+ }
876
+ if (item.h.t50r) {
877
+ result.holder.top50HoldersRatio = this.formatScientificNotation(item.h.t50r);
788
878
  }
789
879
  if (item.h.t10r) {
790
- result.holder.top10Ratio = this.formatScientificNotation(item.h.t10r);
880
+ result.holder.top10HoldersRatio = this.formatScientificNotation(item.h.t10r);
881
+ }
882
+ if (item.h.ch) {
883
+ result.holder.creatorsHolders = item.h.ch;
884
+ }
885
+ if (item.h.ca) {
886
+ result.holder.creatorsAmount = this.formatScientificNotation(item.h.ca);
887
+ }
888
+ if (item.h.cr) {
889
+ result.holder.creatorsRatio = this.formatScientificNotation(item.h.cr);
890
+ }
891
+ if (item.h.btfh) {
892
+ result.holder.balanceTagFreshHolders = item.h.btfh;
893
+ }
894
+ if (item.h.btfa) {
895
+ result.holder.balanceTagFreshAmount = this.formatScientificNotation(item.h.btfa);
896
+ }
897
+ if (item.h.btfr) {
898
+ result.holder.balanceTagFreshRatio = this.formatScientificNotation(item.h.btfr);
899
+ }
900
+ if (item.h.btsh) {
901
+ result.holder.balanceTagSandwichHolders = item.h.btsh;
902
+ }
903
+ if (item.h.btsa) {
904
+ result.holder.balanceTagSandwichAmount = this.formatScientificNotation(item.h.btsa);
905
+ }
906
+ if (item.h.btsr) {
907
+ result.holder.balanceTagSandwichRatio = this.formatScientificNotation(item.h.btsr);
908
+ }
909
+ if (item.h.btbh) {
910
+ result.holder.balanceTagBundleHolders = item.h.btbh;
911
+ }
912
+ if (item.h.btba) {
913
+ result.holder.balanceTagBundleAmount = this.formatScientificNotation(item.h.btba);
914
+ }
915
+ if (item.h.btbr) {
916
+ result.holder.balanceTagBundleRatio = this.formatScientificNotation(item.h.btbr);
917
+ }
918
+ if (item.h.btsnh) {
919
+ result.holder.balanceTagSniperHolders = item.h.btsnh;
920
+ }
921
+ if (item.h.btsna) {
922
+ result.holder.balanceTagSniperAmount = this.formatScientificNotation(item.h.btsna);
923
+ }
924
+ if (item.h.btsnr) {
925
+ result.holder.balanceTagSniperRatio = this.formatScientificNotation(item.h.btsnr);
926
+ }
927
+ if (item.h.btdh) {
928
+ result.holder.balanceTagDevHolders = item.h.btdh;
929
+ }
930
+ if (item.h.btda) {
931
+ result.holder.balanceTagDevAmount = this.formatScientificNotation(item.h.btda);
932
+ }
933
+ if (item.h.btdr) {
934
+ result.holder.balanceTagDevRatio = this.formatScientificNotation(item.h.btdr);
935
+ }
936
+ if (item.h.btph) {
937
+ result.holder.balanceTagProHolders = item.h.btph;
938
+ }
939
+ if (item.h.btpa) {
940
+ result.holder.balanceTagProAmount = this.formatScientificNotation(item.h.btpa);
941
+ }
942
+ if (item.h.btpr) {
943
+ result.holder.balanceTagProRatio = this.formatScientificNotation(item.h.btpr);
944
+ }
945
+ if (item.h.btih) {
946
+ result.holder.balanceTagInsiderHolders = item.h.btih;
947
+ }
948
+ if (item.h.btia) {
949
+ result.holder.balanceTagInsiderAmount = this.formatScientificNotation(item.h.btia);
950
+ }
951
+ if (item.h.btir) {
952
+ result.holder.balanceTagInsiderRatio = this.formatScientificNotation(item.h.btir);
953
+ }
954
+ if (item.h.btsmh) {
955
+ result.holder.balanceTagSmartHolders = item.h.btsmh;
956
+ }
957
+ if (item.h.btsma) {
958
+ result.holder.balanceTagSmartAmount = this.formatScientificNotation(item.h.btsma);
959
+ }
960
+ if (item.h.btsmr) {
961
+ result.holder.balanceTagSmartRatio = this.formatScientificNotation(item.h.btsmr);
962
+ }
963
+ if (item.h.btkh) {
964
+ result.holder.balanceTagKolHolders = item.h.btkh;
965
+ }
966
+ if (item.h.btka) {
967
+ result.holder.balanceTagKolAmount = this.formatScientificNotation(item.h.btka);
968
+ }
969
+ if (item.h.btkr) {
970
+ result.holder.balanceTagKolRatio = this.formatScientificNotation(item.h.btkr);
971
+ }
972
+ if (item.h.btphh) {
973
+ result.holder.balanceTagPhishingHolders = item.h.btphh;
974
+ }
975
+ if (item.h.btpha) {
976
+ result.holder.balanceTagPhishingAmount = this.formatScientificNotation(item.h.btpha);
977
+ }
978
+ if (item.h.btphr) {
979
+ result.holder.balanceTagPhishingRatio = this.formatScientificNotation(item.h.btphr);
980
+ }
981
+ if (item.h.btblh) {
982
+ result.holder.balanceTagBluechipHolders = item.h.btblh;
983
+ }
984
+ if (item.h.btbla) {
985
+ result.holder.balanceTagBluechipAmount = this.formatScientificNotation(item.h.btbla);
986
+ }
987
+ if (item.h.btblr) {
988
+ result.holder.balanceTagBluechipRatio = this.formatScientificNotation(item.h.btblr);
989
+ }
990
+ if (item.h.btrh) {
991
+ result.holder.balanceTagRatHolders = item.h.btrh;
992
+ }
993
+ if (item.h.btra) {
994
+ result.holder.balanceTagRatAmount = this.formatScientificNotation(item.h.btra);
995
+ }
996
+ if (item.h.btrr) {
997
+ result.holder.balanceTagRatRatio = this.formatScientificNotation(item.h.btrr);
791
998
  }
792
999
  }
793
1000
  if (item.s) {
@@ -1100,12 +1307,54 @@ var StreamApi = class {
1100
1307
  (it) => ({
1101
1308
  tokenAddress: it.a,
1102
1309
  holders: it.h,
1103
- top100Amount: this.formatScientificNotation(it.t100a),
1104
- top10Amount: this.formatScientificNotation(it.t10a),
1310
+ top100HoldersAmount: this.formatScientificNotation(it.t100a),
1311
+ top50HoldersAmount: this.formatScientificNotation(it.t50a),
1312
+ top10HoldersAmount: this.formatScientificNotation(it.t10a),
1105
1313
  top100Holders: it.t100h,
1314
+ top50Holders: it.t50h,
1106
1315
  top10Holders: it.t10h,
1107
- top100Ratio: this.formatScientificNotation(it.t100r),
1108
- top10Ratio: this.formatScientificNotation(it.t10r),
1316
+ top100HoldersRatio: this.formatScientificNotation(it.t100r),
1317
+ top50HoldersRatio: this.formatScientificNotation(it.t50r),
1318
+ top10HoldersRatio: this.formatScientificNotation(it.t10r),
1319
+ creatorsHolders: it.ch,
1320
+ creatorsAmount: this.formatScientificNotation(it.ca),
1321
+ creatorsRatio: this.formatScientificNotation(it.cr),
1322
+ balanceTagFreshHolders: it.btfh,
1323
+ balanceTagFreshAmount: this.formatScientificNotation(it.btfa),
1324
+ balanceTagFreshRatio: this.formatScientificNotation(it.btfr),
1325
+ balanceTagSandwichHolders: it.btsh,
1326
+ balanceTagSandwichAmount: this.formatScientificNotation(it.btsa),
1327
+ balanceTagSandwichRatio: this.formatScientificNotation(it.btsr),
1328
+ balanceTagBundleHolders: it.btbh,
1329
+ balanceTagBundleAmount: this.formatScientificNotation(it.btba),
1330
+ balanceTagBundleRatio: this.formatScientificNotation(it.btbr),
1331
+ balanceTagSniperHolders: it.btsnh,
1332
+ balanceTagSniperAmount: this.formatScientificNotation(it.btsna),
1333
+ balanceTagSniperRatio: this.formatScientificNotation(it.btsnr),
1334
+ balanceTagDevHolders: it.btdh,
1335
+ balanceTagDevAmount: this.formatScientificNotation(it.btda),
1336
+ balanceTagDevRatio: this.formatScientificNotation(it.btdr),
1337
+ balanceTagProHolders: it.btph,
1338
+ balanceTagProAmount: this.formatScientificNotation(it.btpa),
1339
+ balanceTagProRatio: this.formatScientificNotation(it.btpr),
1340
+ balanceTagInsiderHolders: it.btih,
1341
+ balanceTagInsiderAmount: this.formatScientificNotation(it.btia),
1342
+ balanceTagInsiderRatio: this.formatScientificNotation(it.btir),
1343
+ balanceTagSmartHolders: it.btsmh,
1344
+ balanceTagSmartAmount: this.formatScientificNotation(it.btsma),
1345
+ balanceTagSmartRatio: this.formatScientificNotation(it.btsmr),
1346
+ balanceTagKolHolders: it.btkh,
1347
+ balanceTagKolAmount: this.formatScientificNotation(it.btka),
1348
+ balanceTagKolRatio: this.formatScientificNotation(it.btkr),
1349
+ balanceTagPhishingHolders: it.btphh,
1350
+ balanceTagPhishingAmount: this.formatScientificNotation(it.btpha),
1351
+ balanceTagPhishingRatio: this.formatScientificNotation(it.btphr),
1352
+ balanceTagBluechipHolders: it.btblh,
1353
+ balanceTagBluechipAmount: this.formatScientificNotation(it.btbla),
1354
+ balanceTagBluechipRatio: this.formatScientificNotation(it.btblr),
1355
+ balanceTagRatHolders: it.btrh,
1356
+ balanceTagRatAmount: this.formatScientificNotation(it.btra),
1357
+ balanceTagRatRatio: this.formatScientificNotation(it.btrr),
1109
1358
  timestamp: it.ts
1110
1359
  })
1111
1360
  )