@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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @chainstream-io/sdk@0.1.
|
|
1
|
+
## @chainstream-io/sdk@0.1.19
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @chainstream-io/sdk@0.1.
|
|
39
|
+
npm install @chainstream-io/sdk@0.1.19 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -96,15 +96,54 @@ interface TokenStat {
|
|
|
96
96
|
interface TokenHolder {
|
|
97
97
|
tokenAddress: string;
|
|
98
98
|
holders?: number;
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
top100HoldersAmount?: string;
|
|
100
|
+
top50HoldersAmount?: string;
|
|
101
|
+
top10HoldersAmount?: string;
|
|
101
102
|
top100Holders?: number;
|
|
103
|
+
top50Holders?: number;
|
|
102
104
|
top10Holders?: number;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
top100HoldersRatio?: string;
|
|
106
|
+
top50HoldersRatio?: string;
|
|
107
|
+
top10HoldersRatio?: string;
|
|
105
108
|
creatorsHolders?: number;
|
|
106
109
|
creatorsAmount?: string;
|
|
107
110
|
creatorsRatio?: string;
|
|
111
|
+
balanceTagFreshHolders?: number;
|
|
112
|
+
balanceTagFreshAmount?: string;
|
|
113
|
+
balanceTagFreshRatio?: string;
|
|
114
|
+
balanceTagSandwichHolders?: number;
|
|
115
|
+
balanceTagSandwichAmount?: string;
|
|
116
|
+
balanceTagSandwichRatio?: string;
|
|
117
|
+
balanceTagBundleHolders?: number;
|
|
118
|
+
balanceTagBundleAmount?: string;
|
|
119
|
+
balanceTagBundleRatio?: string;
|
|
120
|
+
balanceTagSniperHolders?: number;
|
|
121
|
+
balanceTagSniperAmount?: string;
|
|
122
|
+
balanceTagSniperRatio?: string;
|
|
123
|
+
balanceTagDevHolders?: number;
|
|
124
|
+
balanceTagDevAmount?: string;
|
|
125
|
+
balanceTagDevRatio?: string;
|
|
126
|
+
balanceTagProHolders?: number;
|
|
127
|
+
balanceTagProAmount?: string;
|
|
128
|
+
balanceTagProRatio?: string;
|
|
129
|
+
balanceTagInsiderHolders?: number;
|
|
130
|
+
balanceTagInsiderAmount?: string;
|
|
131
|
+
balanceTagInsiderRatio?: string;
|
|
132
|
+
balanceTagSmartHolders?: number;
|
|
133
|
+
balanceTagSmartAmount?: string;
|
|
134
|
+
balanceTagSmartRatio?: string;
|
|
135
|
+
balanceTagKolHolders?: number;
|
|
136
|
+
balanceTagKolAmount?: string;
|
|
137
|
+
balanceTagKolRatio?: string;
|
|
138
|
+
balanceTagPhishingHolders?: number;
|
|
139
|
+
balanceTagPhishingAmount?: string;
|
|
140
|
+
balanceTagPhishingRatio?: string;
|
|
141
|
+
balanceTagBluechipHolders?: number;
|
|
142
|
+
balanceTagBluechipAmount?: string;
|
|
143
|
+
balanceTagBluechipRatio?: string;
|
|
144
|
+
balanceTagRatHolders?: number;
|
|
145
|
+
balanceTagRatAmount?: string;
|
|
146
|
+
balanceTagRatRatio?: string;
|
|
108
147
|
timestamp: number;
|
|
109
148
|
}
|
|
110
149
|
interface WalletBalance {
|
|
@@ -428,7 +467,7 @@ interface DexAggregatorOptions {
|
|
|
428
467
|
serverUrl?: string;
|
|
429
468
|
streamUrl?: string;
|
|
430
469
|
}
|
|
431
|
-
declare const LIB_VERSION = "0.1.
|
|
470
|
+
declare const LIB_VERSION = "0.1.19";
|
|
432
471
|
declare class DexClient {
|
|
433
472
|
readonly requestCtx: DexRequestContext;
|
|
434
473
|
readonly _configuration: Configuration;
|
|
@@ -96,15 +96,54 @@ interface TokenStat {
|
|
|
96
96
|
interface TokenHolder {
|
|
97
97
|
tokenAddress: string;
|
|
98
98
|
holders?: number;
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
top100HoldersAmount?: string;
|
|
100
|
+
top50HoldersAmount?: string;
|
|
101
|
+
top10HoldersAmount?: string;
|
|
101
102
|
top100Holders?: number;
|
|
103
|
+
top50Holders?: number;
|
|
102
104
|
top10Holders?: number;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
+
top100HoldersRatio?: string;
|
|
106
|
+
top50HoldersRatio?: string;
|
|
107
|
+
top10HoldersRatio?: string;
|
|
105
108
|
creatorsHolders?: number;
|
|
106
109
|
creatorsAmount?: string;
|
|
107
110
|
creatorsRatio?: string;
|
|
111
|
+
balanceTagFreshHolders?: number;
|
|
112
|
+
balanceTagFreshAmount?: string;
|
|
113
|
+
balanceTagFreshRatio?: string;
|
|
114
|
+
balanceTagSandwichHolders?: number;
|
|
115
|
+
balanceTagSandwichAmount?: string;
|
|
116
|
+
balanceTagSandwichRatio?: string;
|
|
117
|
+
balanceTagBundleHolders?: number;
|
|
118
|
+
balanceTagBundleAmount?: string;
|
|
119
|
+
balanceTagBundleRatio?: string;
|
|
120
|
+
balanceTagSniperHolders?: number;
|
|
121
|
+
balanceTagSniperAmount?: string;
|
|
122
|
+
balanceTagSniperRatio?: string;
|
|
123
|
+
balanceTagDevHolders?: number;
|
|
124
|
+
balanceTagDevAmount?: string;
|
|
125
|
+
balanceTagDevRatio?: string;
|
|
126
|
+
balanceTagProHolders?: number;
|
|
127
|
+
balanceTagProAmount?: string;
|
|
128
|
+
balanceTagProRatio?: string;
|
|
129
|
+
balanceTagInsiderHolders?: number;
|
|
130
|
+
balanceTagInsiderAmount?: string;
|
|
131
|
+
balanceTagInsiderRatio?: string;
|
|
132
|
+
balanceTagSmartHolders?: number;
|
|
133
|
+
balanceTagSmartAmount?: string;
|
|
134
|
+
balanceTagSmartRatio?: string;
|
|
135
|
+
balanceTagKolHolders?: number;
|
|
136
|
+
balanceTagKolAmount?: string;
|
|
137
|
+
balanceTagKolRatio?: string;
|
|
138
|
+
balanceTagPhishingHolders?: number;
|
|
139
|
+
balanceTagPhishingAmount?: string;
|
|
140
|
+
balanceTagPhishingRatio?: string;
|
|
141
|
+
balanceTagBluechipHolders?: number;
|
|
142
|
+
balanceTagBluechipAmount?: string;
|
|
143
|
+
balanceTagBluechipRatio?: string;
|
|
144
|
+
balanceTagRatHolders?: number;
|
|
145
|
+
balanceTagRatAmount?: string;
|
|
146
|
+
balanceTagRatRatio?: string;
|
|
108
147
|
timestamp: number;
|
|
109
148
|
}
|
|
110
149
|
interface WalletBalance {
|
|
@@ -428,7 +467,7 @@ interface DexAggregatorOptions {
|
|
|
428
467
|
serverUrl?: string;
|
|
429
468
|
streamUrl?: string;
|
|
430
469
|
}
|
|
431
|
-
declare const LIB_VERSION = "0.1.
|
|
470
|
+
declare const LIB_VERSION = "0.1.19";
|
|
432
471
|
declare class DexClient {
|
|
433
472
|
readonly requestCtx: DexRequestContext;
|
|
434
473
|
readonly _configuration: Configuration;
|
package/dist/index.cjs
CHANGED
|
@@ -124,12 +124,54 @@ var CEL_FIELD_MAPPINGS = {
|
|
|
124
124
|
"subscribeTokenHolders": {
|
|
125
125
|
"tokenAddress": "a",
|
|
126
126
|
"holders": "h",
|
|
127
|
-
"
|
|
128
|
-
"
|
|
127
|
+
"top100HoldersAmount": "t100a",
|
|
128
|
+
"top50HoldersAmount": "t50a",
|
|
129
|
+
"top10HoldersAmount": "t10a",
|
|
129
130
|
"top100Holders": "t100h",
|
|
131
|
+
"top50Holders": "t50h",
|
|
130
132
|
"top10Holders": "t10h",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
+
"top100HoldersRatio": "t100r",
|
|
134
|
+
"top50HoldersRatio": "t50r",
|
|
135
|
+
"top10HoldersRatio": "t10r",
|
|
136
|
+
"creatorsHolders": "ch",
|
|
137
|
+
"creatorsAmount": "ca",
|
|
138
|
+
"creatorsRatio": "cr",
|
|
139
|
+
"balanceTagFreshHolders": "btfh",
|
|
140
|
+
"balanceTagFreshAmount": "btfa",
|
|
141
|
+
"balanceTagFreshRatio": "btfr",
|
|
142
|
+
"balanceTagSandwichHolders": "btsh",
|
|
143
|
+
"balanceTagSandwichAmount": "btsa",
|
|
144
|
+
"balanceTagSandwichRatio": "btsr",
|
|
145
|
+
"balanceTagBundleHolders": "btbh",
|
|
146
|
+
"balanceTagBundleAmount": "btba",
|
|
147
|
+
"balanceTagBundleRatio": "btbr",
|
|
148
|
+
"balanceTagSniperHolders": "btsnh",
|
|
149
|
+
"balanceTagSniperAmount": "btsna",
|
|
150
|
+
"balanceTagSniperRatio": "btsnr",
|
|
151
|
+
"balanceTagDevHolders": "btdh",
|
|
152
|
+
"balanceTagDevAmount": "btda",
|
|
153
|
+
"balanceTagDevRatio": "btdr",
|
|
154
|
+
"balanceTagProHolders": "btph",
|
|
155
|
+
"balanceTagProAmount": "btpa",
|
|
156
|
+
"balanceTagProRatio": "btpr",
|
|
157
|
+
"balanceTagInsiderHolders": "btih",
|
|
158
|
+
"balanceTagInsiderAmount": "btia",
|
|
159
|
+
"balanceTagInsiderRatio": "btir",
|
|
160
|
+
"balanceTagSmartHolders": "btsmh",
|
|
161
|
+
"balanceTagSmartAmount": "btsma",
|
|
162
|
+
"balanceTagSmartRatio": "btsmr",
|
|
163
|
+
"balanceTagKolHolders": "btkh",
|
|
164
|
+
"balanceTagKolAmount": "btka",
|
|
165
|
+
"balanceTagKolRatio": "btkr",
|
|
166
|
+
"balanceTagPhishingHolders": "btphh",
|
|
167
|
+
"balanceTagPhishingAmount": "btpha",
|
|
168
|
+
"balanceTagPhishingRatio": "btphr",
|
|
169
|
+
"balanceTagBluechipHolders": "btblh",
|
|
170
|
+
"balanceTagBluechipAmount": "btbla",
|
|
171
|
+
"balanceTagBluechipRatio": "btblr",
|
|
172
|
+
"balanceTagRatHolders": "btrh",
|
|
173
|
+
"balanceTagRatAmount": "btra",
|
|
174
|
+
"balanceTagRatRatio": "btrr",
|
|
133
175
|
"timestamp": "ts"
|
|
134
176
|
},
|
|
135
177
|
// New token subscription fields
|
|
@@ -463,15 +505,54 @@ var StreamApi = class {
|
|
|
463
505
|
return this.subscribe(channel, (data) => callback({
|
|
464
506
|
tokenAddress: data.a,
|
|
465
507
|
holders: data.h,
|
|
466
|
-
|
|
467
|
-
|
|
508
|
+
top100HoldersAmount: this.formatScientificNotation(data.t100a),
|
|
509
|
+
top50HoldersAmount: this.formatScientificNotation(data.t50a),
|
|
510
|
+
top10HoldersAmount: this.formatScientificNotation(data.t10a),
|
|
468
511
|
top100Holders: data.t100h,
|
|
512
|
+
top50Holders: data.t50h,
|
|
469
513
|
top10Holders: data.t10h,
|
|
470
|
-
|
|
471
|
-
|
|
514
|
+
top100HoldersRatio: this.formatScientificNotation(data.t100r),
|
|
515
|
+
top50HoldersRatio: this.formatScientificNotation(data.t50r),
|
|
516
|
+
top10HoldersRatio: this.formatScientificNotation(data.t10r),
|
|
472
517
|
creatorsHolders: data.ch,
|
|
473
518
|
creatorsAmount: this.formatScientificNotation(data.ca),
|
|
474
519
|
creatorsRatio: this.formatScientificNotation(data.cr),
|
|
520
|
+
balanceTagFreshHolders: data.btfh,
|
|
521
|
+
balanceTagFreshAmount: this.formatScientificNotation(data.btfa),
|
|
522
|
+
balanceTagFreshRatio: this.formatScientificNotation(data.btfr),
|
|
523
|
+
balanceTagSandwichHolders: data.btsh,
|
|
524
|
+
balanceTagSandwichAmount: this.formatScientificNotation(data.btsa),
|
|
525
|
+
balanceTagSandwichRatio: this.formatScientificNotation(data.btsr),
|
|
526
|
+
balanceTagBundleHolders: data.btbh,
|
|
527
|
+
balanceTagBundleAmount: this.formatScientificNotation(data.btba),
|
|
528
|
+
balanceTagBundleRatio: this.formatScientificNotation(data.btbr),
|
|
529
|
+
balanceTagSniperHolders: data.btsnh,
|
|
530
|
+
balanceTagSniperAmount: this.formatScientificNotation(data.btsna),
|
|
531
|
+
balanceTagSniperRatio: this.formatScientificNotation(data.btsnr),
|
|
532
|
+
balanceTagDevHolders: data.btdh,
|
|
533
|
+
balanceTagDevAmount: this.formatScientificNotation(data.btda),
|
|
534
|
+
balanceTagDevRatio: this.formatScientificNotation(data.btdr),
|
|
535
|
+
balanceTagProHolders: data.btph,
|
|
536
|
+
balanceTagProAmount: this.formatScientificNotation(data.btpa),
|
|
537
|
+
balanceTagProRatio: this.formatScientificNotation(data.btpr),
|
|
538
|
+
balanceTagInsiderHolders: data.btih,
|
|
539
|
+
balanceTagInsiderAmount: this.formatScientificNotation(data.btia),
|
|
540
|
+
balanceTagInsiderRatio: this.formatScientificNotation(data.btir),
|
|
541
|
+
balanceTagSmartHolders: data.btsmh,
|
|
542
|
+
balanceTagSmartAmount: this.formatScientificNotation(data.btsma),
|
|
543
|
+
balanceTagSmartRatio: this.formatScientificNotation(data.btsmr),
|
|
544
|
+
balanceTagKolHolders: data.btkh,
|
|
545
|
+
balanceTagKolAmount: this.formatScientificNotation(data.btka),
|
|
546
|
+
balanceTagKolRatio: this.formatScientificNotation(data.btkr),
|
|
547
|
+
balanceTagPhishingHolders: data.btphh,
|
|
548
|
+
balanceTagPhishingAmount: this.formatScientificNotation(data.btpha),
|
|
549
|
+
balanceTagPhishingRatio: this.formatScientificNotation(data.btphr),
|
|
550
|
+
balanceTagBluechipHolders: data.btblh,
|
|
551
|
+
balanceTagBluechipAmount: this.formatScientificNotation(data.btbla),
|
|
552
|
+
balanceTagBluechipRatio: this.formatScientificNotation(data.btblr),
|
|
553
|
+
balanceTagRatHolders: data.btrh,
|
|
554
|
+
balanceTagRatAmount: this.formatScientificNotation(data.btra),
|
|
555
|
+
balanceTagRatRatio: this.formatScientificNotation(data.btrr),
|
|
475
556
|
timestamp: data.ts
|
|
476
557
|
}), filter, "subscribeTokenHolders");
|
|
477
558
|
}
|
|
@@ -760,22 +841,148 @@ var StreamApi = class {
|
|
|
760
841
|
result.holder.holders = item.h.h;
|
|
761
842
|
}
|
|
762
843
|
if (item.h.t100a) {
|
|
763
|
-
result.holder.
|
|
844
|
+
result.holder.top100HoldersAmount = this.formatScientificNotation(item.h.t100a);
|
|
845
|
+
}
|
|
846
|
+
if (item.h.t50a) {
|
|
847
|
+
result.holder.top50HoldersAmount = this.formatScientificNotation(item.h.t50a);
|
|
764
848
|
}
|
|
765
849
|
if (item.h.t10a) {
|
|
766
|
-
result.holder.
|
|
850
|
+
result.holder.top10HoldersAmount = this.formatScientificNotation(item.h.t10a);
|
|
767
851
|
}
|
|
768
852
|
if (item.h.t100h) {
|
|
769
853
|
result.holder.top100Holders = item.h.t100h;
|
|
770
854
|
}
|
|
855
|
+
if (item.h.t50h) {
|
|
856
|
+
result.holder.top50Holders = item.h.t50h;
|
|
857
|
+
}
|
|
771
858
|
if (item.h.t10h) {
|
|
772
859
|
result.holder.top10Holders = item.h.t10h;
|
|
773
860
|
}
|
|
774
861
|
if (item.h.t100r) {
|
|
775
|
-
result.holder.
|
|
862
|
+
result.holder.top100HoldersRatio = this.formatScientificNotation(item.h.t100r);
|
|
863
|
+
}
|
|
864
|
+
if (item.h.t50r) {
|
|
865
|
+
result.holder.top50HoldersRatio = this.formatScientificNotation(item.h.t50r);
|
|
776
866
|
}
|
|
777
867
|
if (item.h.t10r) {
|
|
778
|
-
result.holder.
|
|
868
|
+
result.holder.top10HoldersRatio = this.formatScientificNotation(item.h.t10r);
|
|
869
|
+
}
|
|
870
|
+
if (item.h.ch) {
|
|
871
|
+
result.holder.creatorsHolders = item.h.ch;
|
|
872
|
+
}
|
|
873
|
+
if (item.h.ca) {
|
|
874
|
+
result.holder.creatorsAmount = this.formatScientificNotation(item.h.ca);
|
|
875
|
+
}
|
|
876
|
+
if (item.h.cr) {
|
|
877
|
+
result.holder.creatorsRatio = this.formatScientificNotation(item.h.cr);
|
|
878
|
+
}
|
|
879
|
+
if (item.h.btfh) {
|
|
880
|
+
result.holder.balanceTagFreshHolders = item.h.btfh;
|
|
881
|
+
}
|
|
882
|
+
if (item.h.btfa) {
|
|
883
|
+
result.holder.balanceTagFreshAmount = this.formatScientificNotation(item.h.btfa);
|
|
884
|
+
}
|
|
885
|
+
if (item.h.btfr) {
|
|
886
|
+
result.holder.balanceTagFreshRatio = this.formatScientificNotation(item.h.btfr);
|
|
887
|
+
}
|
|
888
|
+
if (item.h.btsh) {
|
|
889
|
+
result.holder.balanceTagSandwichHolders = item.h.btsh;
|
|
890
|
+
}
|
|
891
|
+
if (item.h.btsa) {
|
|
892
|
+
result.holder.balanceTagSandwichAmount = this.formatScientificNotation(item.h.btsa);
|
|
893
|
+
}
|
|
894
|
+
if (item.h.btsr) {
|
|
895
|
+
result.holder.balanceTagSandwichRatio = this.formatScientificNotation(item.h.btsr);
|
|
896
|
+
}
|
|
897
|
+
if (item.h.btbh) {
|
|
898
|
+
result.holder.balanceTagBundleHolders = item.h.btbh;
|
|
899
|
+
}
|
|
900
|
+
if (item.h.btba) {
|
|
901
|
+
result.holder.balanceTagBundleAmount = this.formatScientificNotation(item.h.btba);
|
|
902
|
+
}
|
|
903
|
+
if (item.h.btbr) {
|
|
904
|
+
result.holder.balanceTagBundleRatio = this.formatScientificNotation(item.h.btbr);
|
|
905
|
+
}
|
|
906
|
+
if (item.h.btsnh) {
|
|
907
|
+
result.holder.balanceTagSniperHolders = item.h.btsnh;
|
|
908
|
+
}
|
|
909
|
+
if (item.h.btsna) {
|
|
910
|
+
result.holder.balanceTagSniperAmount = this.formatScientificNotation(item.h.btsna);
|
|
911
|
+
}
|
|
912
|
+
if (item.h.btsnr) {
|
|
913
|
+
result.holder.balanceTagSniperRatio = this.formatScientificNotation(item.h.btsnr);
|
|
914
|
+
}
|
|
915
|
+
if (item.h.btdh) {
|
|
916
|
+
result.holder.balanceTagDevHolders = item.h.btdh;
|
|
917
|
+
}
|
|
918
|
+
if (item.h.btda) {
|
|
919
|
+
result.holder.balanceTagDevAmount = this.formatScientificNotation(item.h.btda);
|
|
920
|
+
}
|
|
921
|
+
if (item.h.btdr) {
|
|
922
|
+
result.holder.balanceTagDevRatio = this.formatScientificNotation(item.h.btdr);
|
|
923
|
+
}
|
|
924
|
+
if (item.h.btph) {
|
|
925
|
+
result.holder.balanceTagProHolders = item.h.btph;
|
|
926
|
+
}
|
|
927
|
+
if (item.h.btpa) {
|
|
928
|
+
result.holder.balanceTagProAmount = this.formatScientificNotation(item.h.btpa);
|
|
929
|
+
}
|
|
930
|
+
if (item.h.btpr) {
|
|
931
|
+
result.holder.balanceTagProRatio = this.formatScientificNotation(item.h.btpr);
|
|
932
|
+
}
|
|
933
|
+
if (item.h.btih) {
|
|
934
|
+
result.holder.balanceTagInsiderHolders = item.h.btih;
|
|
935
|
+
}
|
|
936
|
+
if (item.h.btia) {
|
|
937
|
+
result.holder.balanceTagInsiderAmount = this.formatScientificNotation(item.h.btia);
|
|
938
|
+
}
|
|
939
|
+
if (item.h.btir) {
|
|
940
|
+
result.holder.balanceTagInsiderRatio = this.formatScientificNotation(item.h.btir);
|
|
941
|
+
}
|
|
942
|
+
if (item.h.btsmh) {
|
|
943
|
+
result.holder.balanceTagSmartHolders = item.h.btsmh;
|
|
944
|
+
}
|
|
945
|
+
if (item.h.btsma) {
|
|
946
|
+
result.holder.balanceTagSmartAmount = this.formatScientificNotation(item.h.btsma);
|
|
947
|
+
}
|
|
948
|
+
if (item.h.btsmr) {
|
|
949
|
+
result.holder.balanceTagSmartRatio = this.formatScientificNotation(item.h.btsmr);
|
|
950
|
+
}
|
|
951
|
+
if (item.h.btkh) {
|
|
952
|
+
result.holder.balanceTagKolHolders = item.h.btkh;
|
|
953
|
+
}
|
|
954
|
+
if (item.h.btka) {
|
|
955
|
+
result.holder.balanceTagKolAmount = this.formatScientificNotation(item.h.btka);
|
|
956
|
+
}
|
|
957
|
+
if (item.h.btkr) {
|
|
958
|
+
result.holder.balanceTagKolRatio = this.formatScientificNotation(item.h.btkr);
|
|
959
|
+
}
|
|
960
|
+
if (item.h.btphh) {
|
|
961
|
+
result.holder.balanceTagPhishingHolders = item.h.btphh;
|
|
962
|
+
}
|
|
963
|
+
if (item.h.btpha) {
|
|
964
|
+
result.holder.balanceTagPhishingAmount = this.formatScientificNotation(item.h.btpha);
|
|
965
|
+
}
|
|
966
|
+
if (item.h.btphr) {
|
|
967
|
+
result.holder.balanceTagPhishingRatio = this.formatScientificNotation(item.h.btphr);
|
|
968
|
+
}
|
|
969
|
+
if (item.h.btblh) {
|
|
970
|
+
result.holder.balanceTagBluechipHolders = item.h.btblh;
|
|
971
|
+
}
|
|
972
|
+
if (item.h.btbla) {
|
|
973
|
+
result.holder.balanceTagBluechipAmount = this.formatScientificNotation(item.h.btbla);
|
|
974
|
+
}
|
|
975
|
+
if (item.h.btblr) {
|
|
976
|
+
result.holder.balanceTagBluechipRatio = this.formatScientificNotation(item.h.btblr);
|
|
977
|
+
}
|
|
978
|
+
if (item.h.btrh) {
|
|
979
|
+
result.holder.balanceTagRatHolders = item.h.btrh;
|
|
980
|
+
}
|
|
981
|
+
if (item.h.btra) {
|
|
982
|
+
result.holder.balanceTagRatAmount = this.formatScientificNotation(item.h.btra);
|
|
983
|
+
}
|
|
984
|
+
if (item.h.btrr) {
|
|
985
|
+
result.holder.balanceTagRatRatio = this.formatScientificNotation(item.h.btrr);
|
|
779
986
|
}
|
|
780
987
|
}
|
|
781
988
|
if (item.s) {
|
|
@@ -1088,12 +1295,54 @@ var StreamApi = class {
|
|
|
1088
1295
|
(it) => ({
|
|
1089
1296
|
tokenAddress: it.a,
|
|
1090
1297
|
holders: it.h,
|
|
1091
|
-
|
|
1092
|
-
|
|
1298
|
+
top100HoldersAmount: this.formatScientificNotation(it.t100a),
|
|
1299
|
+
top50HoldersAmount: this.formatScientificNotation(it.t50a),
|
|
1300
|
+
top10HoldersAmount: this.formatScientificNotation(it.t10a),
|
|
1093
1301
|
top100Holders: it.t100h,
|
|
1302
|
+
top50Holders: it.t50h,
|
|
1094
1303
|
top10Holders: it.t10h,
|
|
1095
|
-
|
|
1096
|
-
|
|
1304
|
+
top100HoldersRatio: this.formatScientificNotation(it.t100r),
|
|
1305
|
+
top50HoldersRatio: this.formatScientificNotation(it.t50r),
|
|
1306
|
+
top10HoldersRatio: this.formatScientificNotation(it.t10r),
|
|
1307
|
+
creatorsHolders: it.ch,
|
|
1308
|
+
creatorsAmount: this.formatScientificNotation(it.ca),
|
|
1309
|
+
creatorsRatio: this.formatScientificNotation(it.cr),
|
|
1310
|
+
balanceTagFreshHolders: it.btfh,
|
|
1311
|
+
balanceTagFreshAmount: this.formatScientificNotation(it.btfa),
|
|
1312
|
+
balanceTagFreshRatio: this.formatScientificNotation(it.btfr),
|
|
1313
|
+
balanceTagSandwichHolders: it.btsh,
|
|
1314
|
+
balanceTagSandwichAmount: this.formatScientificNotation(it.btsa),
|
|
1315
|
+
balanceTagSandwichRatio: this.formatScientificNotation(it.btsr),
|
|
1316
|
+
balanceTagBundleHolders: it.btbh,
|
|
1317
|
+
balanceTagBundleAmount: this.formatScientificNotation(it.btba),
|
|
1318
|
+
balanceTagBundleRatio: this.formatScientificNotation(it.btbr),
|
|
1319
|
+
balanceTagSniperHolders: it.btsnh,
|
|
1320
|
+
balanceTagSniperAmount: this.formatScientificNotation(it.btsna),
|
|
1321
|
+
balanceTagSniperRatio: this.formatScientificNotation(it.btsnr),
|
|
1322
|
+
balanceTagDevHolders: it.btdh,
|
|
1323
|
+
balanceTagDevAmount: this.formatScientificNotation(it.btda),
|
|
1324
|
+
balanceTagDevRatio: this.formatScientificNotation(it.btdr),
|
|
1325
|
+
balanceTagProHolders: it.btph,
|
|
1326
|
+
balanceTagProAmount: this.formatScientificNotation(it.btpa),
|
|
1327
|
+
balanceTagProRatio: this.formatScientificNotation(it.btpr),
|
|
1328
|
+
balanceTagInsiderHolders: it.btih,
|
|
1329
|
+
balanceTagInsiderAmount: this.formatScientificNotation(it.btia),
|
|
1330
|
+
balanceTagInsiderRatio: this.formatScientificNotation(it.btir),
|
|
1331
|
+
balanceTagSmartHolders: it.btsmh,
|
|
1332
|
+
balanceTagSmartAmount: this.formatScientificNotation(it.btsma),
|
|
1333
|
+
balanceTagSmartRatio: this.formatScientificNotation(it.btsmr),
|
|
1334
|
+
balanceTagKolHolders: it.btkh,
|
|
1335
|
+
balanceTagKolAmount: this.formatScientificNotation(it.btka),
|
|
1336
|
+
balanceTagKolRatio: this.formatScientificNotation(it.btkr),
|
|
1337
|
+
balanceTagPhishingHolders: it.btphh,
|
|
1338
|
+
balanceTagPhishingAmount: this.formatScientificNotation(it.btpha),
|
|
1339
|
+
balanceTagPhishingRatio: this.formatScientificNotation(it.btphr),
|
|
1340
|
+
balanceTagBluechipHolders: it.btblh,
|
|
1341
|
+
balanceTagBluechipAmount: this.formatScientificNotation(it.btbla),
|
|
1342
|
+
balanceTagBluechipRatio: this.formatScientificNotation(it.btblr),
|
|
1343
|
+
balanceTagRatHolders: it.btrh,
|
|
1344
|
+
balanceTagRatAmount: this.formatScientificNotation(it.btra),
|
|
1345
|
+
balanceTagRatRatio: this.formatScientificNotation(it.btrr),
|
|
1097
1346
|
timestamp: it.ts
|
|
1098
1347
|
})
|
|
1099
1348
|
)
|
|
@@ -7913,7 +8162,7 @@ var WatchlistApi = class extends BaseAPI {
|
|
|
7913
8162
|
|
|
7914
8163
|
// src/index.ts
|
|
7915
8164
|
var import_event_source_polyfill = require("event-source-polyfill");
|
|
7916
|
-
var LIB_VERSION = "0.1.
|
|
8165
|
+
var LIB_VERSION = "0.1.19";
|
|
7917
8166
|
var UserAgentMiddleware = class {
|
|
7918
8167
|
async pre(context) {
|
|
7919
8168
|
if (!context.init.headers) {
|