@chainstream-io/sdk 0.1.18 → 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.
- package/README.md +2 -2
- package/dist/{index-BFUtqtnx.d.ts → index-D2eCYuwV.d.ts} +44 -5
- package/dist/{index-BOKG4I08.d.cts → index-QdKN_FKu.d.cts} +44 -5
- package/dist/index.cjs +266 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +266 -17
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.cjs +265 -16
- package/dist/stream/index.cjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.mjs +265 -16
- package/dist/stream/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/stream/index.mjs
CHANGED
|
@@ -99,12 +99,54 @@ var CEL_FIELD_MAPPINGS = {
|
|
|
99
99
|
"subscribeTokenHolders": {
|
|
100
100
|
"tokenAddress": "a",
|
|
101
101
|
"holders": "h",
|
|
102
|
-
"
|
|
103
|
-
"
|
|
102
|
+
"top100HoldersAmount": "t100a",
|
|
103
|
+
"top50HoldersAmount": "t50a",
|
|
104
|
+
"top10HoldersAmount": "t10a",
|
|
104
105
|
"top100Holders": "t100h",
|
|
106
|
+
"top50Holders": "t50h",
|
|
105
107
|
"top10Holders": "t10h",
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
+
"top100HoldersRatio": "t100r",
|
|
109
|
+
"top50HoldersRatio": "t50r",
|
|
110
|
+
"top10HoldersRatio": "t10r",
|
|
111
|
+
"creatorsHolders": "ch",
|
|
112
|
+
"creatorsAmount": "ca",
|
|
113
|
+
"creatorsRatio": "cr",
|
|
114
|
+
"balanceTagFreshHolders": "btfh",
|
|
115
|
+
"balanceTagFreshAmount": "btfa",
|
|
116
|
+
"balanceTagFreshRatio": "btfr",
|
|
117
|
+
"balanceTagSandwichHolders": "btsh",
|
|
118
|
+
"balanceTagSandwichAmount": "btsa",
|
|
119
|
+
"balanceTagSandwichRatio": "btsr",
|
|
120
|
+
"balanceTagBundleHolders": "btbh",
|
|
121
|
+
"balanceTagBundleAmount": "btba",
|
|
122
|
+
"balanceTagBundleRatio": "btbr",
|
|
123
|
+
"balanceTagSniperHolders": "btsnh",
|
|
124
|
+
"balanceTagSniperAmount": "btsna",
|
|
125
|
+
"balanceTagSniperRatio": "btsnr",
|
|
126
|
+
"balanceTagDevHolders": "btdh",
|
|
127
|
+
"balanceTagDevAmount": "btda",
|
|
128
|
+
"balanceTagDevRatio": "btdr",
|
|
129
|
+
"balanceTagProHolders": "btph",
|
|
130
|
+
"balanceTagProAmount": "btpa",
|
|
131
|
+
"balanceTagProRatio": "btpr",
|
|
132
|
+
"balanceTagInsiderHolders": "btih",
|
|
133
|
+
"balanceTagInsiderAmount": "btia",
|
|
134
|
+
"balanceTagInsiderRatio": "btir",
|
|
135
|
+
"balanceTagSmartHolders": "btsmh",
|
|
136
|
+
"balanceTagSmartAmount": "btsma",
|
|
137
|
+
"balanceTagSmartRatio": "btsmr",
|
|
138
|
+
"balanceTagKolHolders": "btkh",
|
|
139
|
+
"balanceTagKolAmount": "btka",
|
|
140
|
+
"balanceTagKolRatio": "btkr",
|
|
141
|
+
"balanceTagPhishingHolders": "btphh",
|
|
142
|
+
"balanceTagPhishingAmount": "btpha",
|
|
143
|
+
"balanceTagPhishingRatio": "btphr",
|
|
144
|
+
"balanceTagBluechipHolders": "btblh",
|
|
145
|
+
"balanceTagBluechipAmount": "btbla",
|
|
146
|
+
"balanceTagBluechipRatio": "btblr",
|
|
147
|
+
"balanceTagRatHolders": "btrh",
|
|
148
|
+
"balanceTagRatAmount": "btra",
|
|
149
|
+
"balanceTagRatRatio": "btrr",
|
|
108
150
|
"timestamp": "ts"
|
|
109
151
|
},
|
|
110
152
|
// New token subscription fields
|
|
@@ -442,15 +484,54 @@ var StreamApi = class {
|
|
|
442
484
|
return this.subscribe(channel, (data) => callback({
|
|
443
485
|
tokenAddress: data.a,
|
|
444
486
|
holders: data.h,
|
|
445
|
-
|
|
446
|
-
|
|
487
|
+
top100HoldersAmount: this.formatScientificNotation(data.t100a),
|
|
488
|
+
top50HoldersAmount: this.formatScientificNotation(data.t50a),
|
|
489
|
+
top10HoldersAmount: this.formatScientificNotation(data.t10a),
|
|
447
490
|
top100Holders: data.t100h,
|
|
491
|
+
top50Holders: data.t50h,
|
|
448
492
|
top10Holders: data.t10h,
|
|
449
|
-
|
|
450
|
-
|
|
493
|
+
top100HoldersRatio: this.formatScientificNotation(data.t100r),
|
|
494
|
+
top50HoldersRatio: this.formatScientificNotation(data.t50r),
|
|
495
|
+
top10HoldersRatio: this.formatScientificNotation(data.t10r),
|
|
451
496
|
creatorsHolders: data.ch,
|
|
452
497
|
creatorsAmount: this.formatScientificNotation(data.ca),
|
|
453
498
|
creatorsRatio: this.formatScientificNotation(data.cr),
|
|
499
|
+
balanceTagFreshHolders: data.btfh,
|
|
500
|
+
balanceTagFreshAmount: this.formatScientificNotation(data.btfa),
|
|
501
|
+
balanceTagFreshRatio: this.formatScientificNotation(data.btfr),
|
|
502
|
+
balanceTagSandwichHolders: data.btsh,
|
|
503
|
+
balanceTagSandwichAmount: this.formatScientificNotation(data.btsa),
|
|
504
|
+
balanceTagSandwichRatio: this.formatScientificNotation(data.btsr),
|
|
505
|
+
balanceTagBundleHolders: data.btbh,
|
|
506
|
+
balanceTagBundleAmount: this.formatScientificNotation(data.btba),
|
|
507
|
+
balanceTagBundleRatio: this.formatScientificNotation(data.btbr),
|
|
508
|
+
balanceTagSniperHolders: data.btsnh,
|
|
509
|
+
balanceTagSniperAmount: this.formatScientificNotation(data.btsna),
|
|
510
|
+
balanceTagSniperRatio: this.formatScientificNotation(data.btsnr),
|
|
511
|
+
balanceTagDevHolders: data.btdh,
|
|
512
|
+
balanceTagDevAmount: this.formatScientificNotation(data.btda),
|
|
513
|
+
balanceTagDevRatio: this.formatScientificNotation(data.btdr),
|
|
514
|
+
balanceTagProHolders: data.btph,
|
|
515
|
+
balanceTagProAmount: this.formatScientificNotation(data.btpa),
|
|
516
|
+
balanceTagProRatio: this.formatScientificNotation(data.btpr),
|
|
517
|
+
balanceTagInsiderHolders: data.btih,
|
|
518
|
+
balanceTagInsiderAmount: this.formatScientificNotation(data.btia),
|
|
519
|
+
balanceTagInsiderRatio: this.formatScientificNotation(data.btir),
|
|
520
|
+
balanceTagSmartHolders: data.btsmh,
|
|
521
|
+
balanceTagSmartAmount: this.formatScientificNotation(data.btsma),
|
|
522
|
+
balanceTagSmartRatio: this.formatScientificNotation(data.btsmr),
|
|
523
|
+
balanceTagKolHolders: data.btkh,
|
|
524
|
+
balanceTagKolAmount: this.formatScientificNotation(data.btka),
|
|
525
|
+
balanceTagKolRatio: this.formatScientificNotation(data.btkr),
|
|
526
|
+
balanceTagPhishingHolders: data.btphh,
|
|
527
|
+
balanceTagPhishingAmount: this.formatScientificNotation(data.btpha),
|
|
528
|
+
balanceTagPhishingRatio: this.formatScientificNotation(data.btphr),
|
|
529
|
+
balanceTagBluechipHolders: data.btblh,
|
|
530
|
+
balanceTagBluechipAmount: this.formatScientificNotation(data.btbla),
|
|
531
|
+
balanceTagBluechipRatio: this.formatScientificNotation(data.btblr),
|
|
532
|
+
balanceTagRatHolders: data.btrh,
|
|
533
|
+
balanceTagRatAmount: this.formatScientificNotation(data.btra),
|
|
534
|
+
balanceTagRatRatio: this.formatScientificNotation(data.btrr),
|
|
454
535
|
timestamp: data.ts
|
|
455
536
|
}), filter, "subscribeTokenHolders");
|
|
456
537
|
}
|
|
@@ -739,22 +820,148 @@ var StreamApi = class {
|
|
|
739
820
|
result.holder.holders = item.h.h;
|
|
740
821
|
}
|
|
741
822
|
if (item.h.t100a) {
|
|
742
|
-
result.holder.
|
|
823
|
+
result.holder.top100HoldersAmount = this.formatScientificNotation(item.h.t100a);
|
|
824
|
+
}
|
|
825
|
+
if (item.h.t50a) {
|
|
826
|
+
result.holder.top50HoldersAmount = this.formatScientificNotation(item.h.t50a);
|
|
743
827
|
}
|
|
744
828
|
if (item.h.t10a) {
|
|
745
|
-
result.holder.
|
|
829
|
+
result.holder.top10HoldersAmount = this.formatScientificNotation(item.h.t10a);
|
|
746
830
|
}
|
|
747
831
|
if (item.h.t100h) {
|
|
748
832
|
result.holder.top100Holders = item.h.t100h;
|
|
749
833
|
}
|
|
834
|
+
if (item.h.t50h) {
|
|
835
|
+
result.holder.top50Holders = item.h.t50h;
|
|
836
|
+
}
|
|
750
837
|
if (item.h.t10h) {
|
|
751
838
|
result.holder.top10Holders = item.h.t10h;
|
|
752
839
|
}
|
|
753
840
|
if (item.h.t100r) {
|
|
754
|
-
result.holder.
|
|
841
|
+
result.holder.top100HoldersRatio = this.formatScientificNotation(item.h.t100r);
|
|
842
|
+
}
|
|
843
|
+
if (item.h.t50r) {
|
|
844
|
+
result.holder.top50HoldersRatio = this.formatScientificNotation(item.h.t50r);
|
|
755
845
|
}
|
|
756
846
|
if (item.h.t10r) {
|
|
757
|
-
result.holder.
|
|
847
|
+
result.holder.top10HoldersRatio = this.formatScientificNotation(item.h.t10r);
|
|
848
|
+
}
|
|
849
|
+
if (item.h.ch) {
|
|
850
|
+
result.holder.creatorsHolders = item.h.ch;
|
|
851
|
+
}
|
|
852
|
+
if (item.h.ca) {
|
|
853
|
+
result.holder.creatorsAmount = this.formatScientificNotation(item.h.ca);
|
|
854
|
+
}
|
|
855
|
+
if (item.h.cr) {
|
|
856
|
+
result.holder.creatorsRatio = this.formatScientificNotation(item.h.cr);
|
|
857
|
+
}
|
|
858
|
+
if (item.h.btfh) {
|
|
859
|
+
result.holder.balanceTagFreshHolders = item.h.btfh;
|
|
860
|
+
}
|
|
861
|
+
if (item.h.btfa) {
|
|
862
|
+
result.holder.balanceTagFreshAmount = this.formatScientificNotation(item.h.btfa);
|
|
863
|
+
}
|
|
864
|
+
if (item.h.btfr) {
|
|
865
|
+
result.holder.balanceTagFreshRatio = this.formatScientificNotation(item.h.btfr);
|
|
866
|
+
}
|
|
867
|
+
if (item.h.btsh) {
|
|
868
|
+
result.holder.balanceTagSandwichHolders = item.h.btsh;
|
|
869
|
+
}
|
|
870
|
+
if (item.h.btsa) {
|
|
871
|
+
result.holder.balanceTagSandwichAmount = this.formatScientificNotation(item.h.btsa);
|
|
872
|
+
}
|
|
873
|
+
if (item.h.btsr) {
|
|
874
|
+
result.holder.balanceTagSandwichRatio = this.formatScientificNotation(item.h.btsr);
|
|
875
|
+
}
|
|
876
|
+
if (item.h.btbh) {
|
|
877
|
+
result.holder.balanceTagBundleHolders = item.h.btbh;
|
|
878
|
+
}
|
|
879
|
+
if (item.h.btba) {
|
|
880
|
+
result.holder.balanceTagBundleAmount = this.formatScientificNotation(item.h.btba);
|
|
881
|
+
}
|
|
882
|
+
if (item.h.btbr) {
|
|
883
|
+
result.holder.balanceTagBundleRatio = this.formatScientificNotation(item.h.btbr);
|
|
884
|
+
}
|
|
885
|
+
if (item.h.btsnh) {
|
|
886
|
+
result.holder.balanceTagSniperHolders = item.h.btsnh;
|
|
887
|
+
}
|
|
888
|
+
if (item.h.btsna) {
|
|
889
|
+
result.holder.balanceTagSniperAmount = this.formatScientificNotation(item.h.btsna);
|
|
890
|
+
}
|
|
891
|
+
if (item.h.btsnr) {
|
|
892
|
+
result.holder.balanceTagSniperRatio = this.formatScientificNotation(item.h.btsnr);
|
|
893
|
+
}
|
|
894
|
+
if (item.h.btdh) {
|
|
895
|
+
result.holder.balanceTagDevHolders = item.h.btdh;
|
|
896
|
+
}
|
|
897
|
+
if (item.h.btda) {
|
|
898
|
+
result.holder.balanceTagDevAmount = this.formatScientificNotation(item.h.btda);
|
|
899
|
+
}
|
|
900
|
+
if (item.h.btdr) {
|
|
901
|
+
result.holder.balanceTagDevRatio = this.formatScientificNotation(item.h.btdr);
|
|
902
|
+
}
|
|
903
|
+
if (item.h.btph) {
|
|
904
|
+
result.holder.balanceTagProHolders = item.h.btph;
|
|
905
|
+
}
|
|
906
|
+
if (item.h.btpa) {
|
|
907
|
+
result.holder.balanceTagProAmount = this.formatScientificNotation(item.h.btpa);
|
|
908
|
+
}
|
|
909
|
+
if (item.h.btpr) {
|
|
910
|
+
result.holder.balanceTagProRatio = this.formatScientificNotation(item.h.btpr);
|
|
911
|
+
}
|
|
912
|
+
if (item.h.btih) {
|
|
913
|
+
result.holder.balanceTagInsiderHolders = item.h.btih;
|
|
914
|
+
}
|
|
915
|
+
if (item.h.btia) {
|
|
916
|
+
result.holder.balanceTagInsiderAmount = this.formatScientificNotation(item.h.btia);
|
|
917
|
+
}
|
|
918
|
+
if (item.h.btir) {
|
|
919
|
+
result.holder.balanceTagInsiderRatio = this.formatScientificNotation(item.h.btir);
|
|
920
|
+
}
|
|
921
|
+
if (item.h.btsmh) {
|
|
922
|
+
result.holder.balanceTagSmartHolders = item.h.btsmh;
|
|
923
|
+
}
|
|
924
|
+
if (item.h.btsma) {
|
|
925
|
+
result.holder.balanceTagSmartAmount = this.formatScientificNotation(item.h.btsma);
|
|
926
|
+
}
|
|
927
|
+
if (item.h.btsmr) {
|
|
928
|
+
result.holder.balanceTagSmartRatio = this.formatScientificNotation(item.h.btsmr);
|
|
929
|
+
}
|
|
930
|
+
if (item.h.btkh) {
|
|
931
|
+
result.holder.balanceTagKolHolders = item.h.btkh;
|
|
932
|
+
}
|
|
933
|
+
if (item.h.btka) {
|
|
934
|
+
result.holder.balanceTagKolAmount = this.formatScientificNotation(item.h.btka);
|
|
935
|
+
}
|
|
936
|
+
if (item.h.btkr) {
|
|
937
|
+
result.holder.balanceTagKolRatio = this.formatScientificNotation(item.h.btkr);
|
|
938
|
+
}
|
|
939
|
+
if (item.h.btphh) {
|
|
940
|
+
result.holder.balanceTagPhishingHolders = item.h.btphh;
|
|
941
|
+
}
|
|
942
|
+
if (item.h.btpha) {
|
|
943
|
+
result.holder.balanceTagPhishingAmount = this.formatScientificNotation(item.h.btpha);
|
|
944
|
+
}
|
|
945
|
+
if (item.h.btphr) {
|
|
946
|
+
result.holder.balanceTagPhishingRatio = this.formatScientificNotation(item.h.btphr);
|
|
947
|
+
}
|
|
948
|
+
if (item.h.btblh) {
|
|
949
|
+
result.holder.balanceTagBluechipHolders = item.h.btblh;
|
|
950
|
+
}
|
|
951
|
+
if (item.h.btbla) {
|
|
952
|
+
result.holder.balanceTagBluechipAmount = this.formatScientificNotation(item.h.btbla);
|
|
953
|
+
}
|
|
954
|
+
if (item.h.btblr) {
|
|
955
|
+
result.holder.balanceTagBluechipRatio = this.formatScientificNotation(item.h.btblr);
|
|
956
|
+
}
|
|
957
|
+
if (item.h.btrh) {
|
|
958
|
+
result.holder.balanceTagRatHolders = item.h.btrh;
|
|
959
|
+
}
|
|
960
|
+
if (item.h.btra) {
|
|
961
|
+
result.holder.balanceTagRatAmount = this.formatScientificNotation(item.h.btra);
|
|
962
|
+
}
|
|
963
|
+
if (item.h.btrr) {
|
|
964
|
+
result.holder.balanceTagRatRatio = this.formatScientificNotation(item.h.btrr);
|
|
758
965
|
}
|
|
759
966
|
}
|
|
760
967
|
if (item.s) {
|
|
@@ -1067,12 +1274,54 @@ var StreamApi = class {
|
|
|
1067
1274
|
(it) => ({
|
|
1068
1275
|
tokenAddress: it.a,
|
|
1069
1276
|
holders: it.h,
|
|
1070
|
-
|
|
1071
|
-
|
|
1277
|
+
top100HoldersAmount: this.formatScientificNotation(it.t100a),
|
|
1278
|
+
top50HoldersAmount: this.formatScientificNotation(it.t50a),
|
|
1279
|
+
top10HoldersAmount: this.formatScientificNotation(it.t10a),
|
|
1072
1280
|
top100Holders: it.t100h,
|
|
1281
|
+
top50Holders: it.t50h,
|
|
1073
1282
|
top10Holders: it.t10h,
|
|
1074
|
-
|
|
1075
|
-
|
|
1283
|
+
top100HoldersRatio: this.formatScientificNotation(it.t100r),
|
|
1284
|
+
top50HoldersRatio: this.formatScientificNotation(it.t50r),
|
|
1285
|
+
top10HoldersRatio: this.formatScientificNotation(it.t10r),
|
|
1286
|
+
creatorsHolders: it.ch,
|
|
1287
|
+
creatorsAmount: this.formatScientificNotation(it.ca),
|
|
1288
|
+
creatorsRatio: this.formatScientificNotation(it.cr),
|
|
1289
|
+
balanceTagFreshHolders: it.btfh,
|
|
1290
|
+
balanceTagFreshAmount: this.formatScientificNotation(it.btfa),
|
|
1291
|
+
balanceTagFreshRatio: this.formatScientificNotation(it.btfr),
|
|
1292
|
+
balanceTagSandwichHolders: it.btsh,
|
|
1293
|
+
balanceTagSandwichAmount: this.formatScientificNotation(it.btsa),
|
|
1294
|
+
balanceTagSandwichRatio: this.formatScientificNotation(it.btsr),
|
|
1295
|
+
balanceTagBundleHolders: it.btbh,
|
|
1296
|
+
balanceTagBundleAmount: this.formatScientificNotation(it.btba),
|
|
1297
|
+
balanceTagBundleRatio: this.formatScientificNotation(it.btbr),
|
|
1298
|
+
balanceTagSniperHolders: it.btsnh,
|
|
1299
|
+
balanceTagSniperAmount: this.formatScientificNotation(it.btsna),
|
|
1300
|
+
balanceTagSniperRatio: this.formatScientificNotation(it.btsnr),
|
|
1301
|
+
balanceTagDevHolders: it.btdh,
|
|
1302
|
+
balanceTagDevAmount: this.formatScientificNotation(it.btda),
|
|
1303
|
+
balanceTagDevRatio: this.formatScientificNotation(it.btdr),
|
|
1304
|
+
balanceTagProHolders: it.btph,
|
|
1305
|
+
balanceTagProAmount: this.formatScientificNotation(it.btpa),
|
|
1306
|
+
balanceTagProRatio: this.formatScientificNotation(it.btpr),
|
|
1307
|
+
balanceTagInsiderHolders: it.btih,
|
|
1308
|
+
balanceTagInsiderAmount: this.formatScientificNotation(it.btia),
|
|
1309
|
+
balanceTagInsiderRatio: this.formatScientificNotation(it.btir),
|
|
1310
|
+
balanceTagSmartHolders: it.btsmh,
|
|
1311
|
+
balanceTagSmartAmount: this.formatScientificNotation(it.btsma),
|
|
1312
|
+
balanceTagSmartRatio: this.formatScientificNotation(it.btsmr),
|
|
1313
|
+
balanceTagKolHolders: it.btkh,
|
|
1314
|
+
balanceTagKolAmount: this.formatScientificNotation(it.btka),
|
|
1315
|
+
balanceTagKolRatio: this.formatScientificNotation(it.btkr),
|
|
1316
|
+
balanceTagPhishingHolders: it.btphh,
|
|
1317
|
+
balanceTagPhishingAmount: this.formatScientificNotation(it.btpha),
|
|
1318
|
+
balanceTagPhishingRatio: this.formatScientificNotation(it.btphr),
|
|
1319
|
+
balanceTagBluechipHolders: it.btblh,
|
|
1320
|
+
balanceTagBluechipAmount: this.formatScientificNotation(it.btbla),
|
|
1321
|
+
balanceTagBluechipRatio: this.formatScientificNotation(it.btblr),
|
|
1322
|
+
balanceTagRatHolders: it.btrh,
|
|
1323
|
+
balanceTagRatAmount: this.formatScientificNotation(it.btra),
|
|
1324
|
+
balanceTagRatRatio: this.formatScientificNotation(it.btrr),
|
|
1076
1325
|
timestamp: it.ts
|
|
1077
1326
|
})
|
|
1078
1327
|
)
|