@tokemak/queries 0.1.7 → 0.2.1
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/dist/functions/getAutopoolDayData.d.ts.map +1 -1
- package/dist/functions/getAutopoolHistory.d.ts.map +1 -1
- package/dist/functions/getAutopools.d.ts +15 -15
- package/dist/functions/getAutopools.d.ts.map +1 -1
- package/dist/functions/getAutopoolsRebalances.d.ts.map +1 -1
- package/dist/functions/getChainAutopools.d.ts +15 -15
- package/dist/functions/getChainAutopools.d.ts.map +1 -1
- package/dist/functions/getChainSTokeRewards.d.ts.map +1 -1
- package/dist/functions/getChainUserActivity.d.ts.map +1 -1
- package/dist/functions/getCombinedRewards.d.ts.map +1 -1
- package/dist/functions/getMultipleAutopoolRebalances.d.ts.map +1 -1
- package/dist/functions/getTokenPrices.d.ts +71 -71
- package/dist/functions/getUserAutopool.d.ts +3 -3
- package/dist/functions/getUserAutopoolBalanceChanges.d.ts.map +1 -1
- package/dist/functions/getUserAutopools.d.ts +9 -9
- package/dist/functions/getUserMerklRewards.d.ts +2 -1
- package/dist/functions/getUserMerklRewards.d.ts.map +1 -1
- package/dist/index.js +28 -18
- package/dist/index.mjs +28 -18
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolDayData.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolDayData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,UAAS,iBAAqB,EAC9B,iBAAgB,MAAiC;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolDayData.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolDayData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,MAAM,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAKpD,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,EAChB,UAAS,iBAAqB,EAC9B,iBAAgB,MAAiC;;;;;;;;;;;;;;;;;kBA6Dq9sjD,CAAC;;;;IADxgtjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolHistory.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,eAAO,MAAM,kBAAkB,GAAU,UAAU,SAAS;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolHistory.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolHistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG3C,eAAO,MAAM,kBAAkB,GAAU,UAAU,SAAS;;;;;;;;;;;;;;;;;kBAGwpwjD,CAAC;;;;IADptwjD,CAAC"}
|
|
@@ -39,7 +39,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
39
39
|
underlyingTokens: {
|
|
40
40
|
valueUsd: number;
|
|
41
41
|
value: number;
|
|
42
|
-
address:
|
|
42
|
+
address: `0x${string}`;
|
|
43
43
|
chainId: number;
|
|
44
44
|
decimals: number;
|
|
45
45
|
logoURI: string;
|
|
@@ -47,10 +47,10 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
47
47
|
symbol: string;
|
|
48
48
|
audits?: string;
|
|
49
49
|
extensions?: {
|
|
50
|
-
bridgeMainnetAdapter?:
|
|
50
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
51
51
|
bridgeInfo?: {
|
|
52
52
|
[chainId: number]: {
|
|
53
|
-
tokenAddress:
|
|
53
|
+
tokenAddress: `0x${string}`;
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
rebasing?: boolean;
|
|
@@ -125,7 +125,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
125
125
|
createdAt: Date;
|
|
126
126
|
baseAsset: {
|
|
127
127
|
price: number;
|
|
128
|
-
address:
|
|
128
|
+
address: `0x${string}`;
|
|
129
129
|
chainId: number;
|
|
130
130
|
decimals: number;
|
|
131
131
|
logoURI: string;
|
|
@@ -133,10 +133,10 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
133
133
|
symbol: string;
|
|
134
134
|
audits?: string;
|
|
135
135
|
extensions?: {
|
|
136
|
-
bridgeMainnetAdapter?:
|
|
136
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
137
137
|
bridgeInfo?: {
|
|
138
138
|
[chainId: number]: {
|
|
139
|
-
tokenAddress:
|
|
139
|
+
tokenAddress: `0x${string}`;
|
|
140
140
|
};
|
|
141
141
|
};
|
|
142
142
|
rebasing?: boolean;
|
|
@@ -145,7 +145,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
145
145
|
};
|
|
146
146
|
denomination: {
|
|
147
147
|
price: number;
|
|
148
|
-
address:
|
|
148
|
+
address: `0x${string}`;
|
|
149
149
|
chainId: number;
|
|
150
150
|
decimals: number;
|
|
151
151
|
logoURI: string;
|
|
@@ -153,10 +153,10 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
153
153
|
symbol: string;
|
|
154
154
|
audits?: string;
|
|
155
155
|
extensions?: {
|
|
156
|
-
bridgeMainnetAdapter?:
|
|
156
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
157
157
|
bridgeInfo?: {
|
|
158
158
|
[chainId: number]: {
|
|
159
|
-
tokenAddress:
|
|
159
|
+
tokenAddress: `0x${string}`;
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
rebasing?: boolean;
|
|
@@ -169,7 +169,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
169
169
|
valueUsd: number;
|
|
170
170
|
value: number;
|
|
171
171
|
allocation: number;
|
|
172
|
-
address:
|
|
172
|
+
address: `0x${string}`;
|
|
173
173
|
chainId: number;
|
|
174
174
|
decimals: number;
|
|
175
175
|
logoURI: string;
|
|
@@ -177,10 +177,10 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
177
177
|
symbol: string;
|
|
178
178
|
audits?: string;
|
|
179
179
|
extensions?: {
|
|
180
|
-
bridgeMainnetAdapter?:
|
|
180
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
181
181
|
bridgeInfo?: {
|
|
182
182
|
[chainId: number]: {
|
|
183
|
-
tokenAddress:
|
|
183
|
+
tokenAddress: `0x${string}`;
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
rebasing?: boolean;
|
|
@@ -200,7 +200,7 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
200
200
|
valueUsd: number;
|
|
201
201
|
value: number;
|
|
202
202
|
allocation: number;
|
|
203
|
-
address:
|
|
203
|
+
address: `0x${string}`;
|
|
204
204
|
chainId: number;
|
|
205
205
|
decimals: number;
|
|
206
206
|
logoURI: string;
|
|
@@ -208,10 +208,10 @@ export declare const getAutopools: (wagmiConfig: Config, { prices, includeTestne
|
|
|
208
208
|
symbol: string;
|
|
209
209
|
audits?: string;
|
|
210
210
|
extensions?: {
|
|
211
|
-
bridgeMainnetAdapter?:
|
|
211
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
212
212
|
bridgeInfo?: {
|
|
213
213
|
[chainId: number]: {
|
|
214
|
-
tokenAddress:
|
|
214
|
+
tokenAddress: `0x${string}`;
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
217
|
rebasing?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopools.d.ts","sourceRoot":"","sources":["../../functions/getAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,6BAGG;IACD,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACA,CAAC;0BAEe,CAAA;;;;;wBAKT,CAAR;2BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopools.d.ts","sourceRoot":"","sources":["../../functions/getAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,eAAO,MAAM,YAAY,GACvB,aAAa,MAAM,EACnB,6BAGG;IACD,MAAM,EAAE,WAAW,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCACA,CAAC;0BAEe,CAAA;;;;;wBAKT,CAAR;2BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAyBk+yjD,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;gCAhC1izjD,CAAC;sBAEe,CAAA;;;;;oBAKT,CAAR;uBAA8B,CAAC;;;;;;;;;;;;;gCAP9B,CAAC;sBAEe,CAAA;;;;;oBAKT,CAAR;uBAA8B,CAAC;;;;;;;;;;;;;;;;;gCAP9B,CAAC;sBAEe,CAAA;;;;;oBAKT,CAAR;uBAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;gCAP9B,CAAC;sBAEe,CAAA;;;;;oBAKT,CAAR;uBAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAqBhC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAClE,MAAM,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAutopoolsRebalances.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolsRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,sBAAsB,GACjC,UAAS,iBAAqB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getAutopoolsRebalances.d.ts","sourceRoot":"","sources":["../../functions/getAutopoolsRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,sBAAsB,GACjC,UAAS,iBAAqB;;;;;;;;;kBAOwx5jD,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;;kBAA4G,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;IAD7l8jD,CAAC"}
|
|
@@ -48,7 +48,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
48
48
|
underlyingTokens: {
|
|
49
49
|
valueUsd: number;
|
|
50
50
|
value: number;
|
|
51
|
-
address:
|
|
51
|
+
address: `0x${string}`;
|
|
52
52
|
chainId: number;
|
|
53
53
|
decimals: number;
|
|
54
54
|
logoURI: string;
|
|
@@ -56,10 +56,10 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
56
56
|
symbol: string;
|
|
57
57
|
audits?: string;
|
|
58
58
|
extensions?: {
|
|
59
|
-
bridgeMainnetAdapter?:
|
|
59
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
60
60
|
bridgeInfo?: {
|
|
61
61
|
[chainId: number]: {
|
|
62
|
-
tokenAddress:
|
|
62
|
+
tokenAddress: `0x${string}`;
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
rebasing?: boolean;
|
|
@@ -134,7 +134,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
134
134
|
createdAt: Date;
|
|
135
135
|
baseAsset: {
|
|
136
136
|
price: number;
|
|
137
|
-
address:
|
|
137
|
+
address: `0x${string}`;
|
|
138
138
|
chainId: number;
|
|
139
139
|
decimals: number;
|
|
140
140
|
logoURI: string;
|
|
@@ -142,10 +142,10 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
142
142
|
symbol: string;
|
|
143
143
|
audits?: string;
|
|
144
144
|
extensions?: {
|
|
145
|
-
bridgeMainnetAdapter?:
|
|
145
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
146
146
|
bridgeInfo?: {
|
|
147
147
|
[chainId: number]: {
|
|
148
|
-
tokenAddress:
|
|
148
|
+
tokenAddress: `0x${string}`;
|
|
149
149
|
};
|
|
150
150
|
};
|
|
151
151
|
rebasing?: boolean;
|
|
@@ -154,7 +154,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
154
154
|
};
|
|
155
155
|
denomination: {
|
|
156
156
|
price: number;
|
|
157
|
-
address:
|
|
157
|
+
address: `0x${string}`;
|
|
158
158
|
chainId: number;
|
|
159
159
|
decimals: number;
|
|
160
160
|
logoURI: string;
|
|
@@ -162,10 +162,10 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
162
162
|
symbol: string;
|
|
163
163
|
audits?: string;
|
|
164
164
|
extensions?: {
|
|
165
|
-
bridgeMainnetAdapter?:
|
|
165
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
166
166
|
bridgeInfo?: {
|
|
167
167
|
[chainId: number]: {
|
|
168
|
-
tokenAddress:
|
|
168
|
+
tokenAddress: `0x${string}`;
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
171
|
rebasing?: boolean;
|
|
@@ -178,7 +178,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
178
178
|
valueUsd: number;
|
|
179
179
|
value: number;
|
|
180
180
|
allocation: number;
|
|
181
|
-
address:
|
|
181
|
+
address: `0x${string}`;
|
|
182
182
|
chainId: number;
|
|
183
183
|
decimals: number;
|
|
184
184
|
logoURI: string;
|
|
@@ -186,10 +186,10 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
186
186
|
symbol: string;
|
|
187
187
|
audits?: string;
|
|
188
188
|
extensions?: {
|
|
189
|
-
bridgeMainnetAdapter?:
|
|
189
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
190
190
|
bridgeInfo?: {
|
|
191
191
|
[chainId: number]: {
|
|
192
|
-
tokenAddress:
|
|
192
|
+
tokenAddress: `0x${string}`;
|
|
193
193
|
};
|
|
194
194
|
};
|
|
195
195
|
rebasing?: boolean;
|
|
@@ -209,7 +209,7 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
209
209
|
valueUsd: number;
|
|
210
210
|
value: number;
|
|
211
211
|
allocation: number;
|
|
212
|
-
address:
|
|
212
|
+
address: `0x${string}`;
|
|
213
213
|
chainId: number;
|
|
214
214
|
decimals: number;
|
|
215
215
|
logoURI: string;
|
|
@@ -217,10 +217,10 @@ export declare const getChainAutopools: (wagmiConfig: Config, { chainId, prices,
|
|
|
217
217
|
symbol: string;
|
|
218
218
|
audits?: string;
|
|
219
219
|
extensions?: {
|
|
220
|
-
bridgeMainnetAdapter?:
|
|
220
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
221
221
|
bridgeInfo?: {
|
|
222
222
|
[chainId: number]: {
|
|
223
|
-
tokenAddress:
|
|
223
|
+
tokenAddress: `0x${string}`;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
rebasing?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainAutopools.d.ts","sourceRoot":"","sources":["../../functions/getChainAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAsBpD,OAAO,EAIL,SAAS,EACT,MAAM,EAMP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAY/C,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD,eAAO,MAAM,iBAAiB,GAC5B,aAAa,MAAM,EACnB,sBAGG;IACD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;mBAdU,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;;;oCA/Bc,CAAC;0BAA6B,CAAC;;;;;wBAGxD,CAAC;2BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getChainAutopools.d.ts","sourceRoot":"","sources":["../../functions/getChainAutopools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAsBpD,OAAO,EAIL,SAAS,EACT,MAAM,EAMP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAY/C,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnD,eAAO,MAAM,iBAAiB,GAC5B,aAAa,MAAM,EACnB,sBAGG;IACD,OAAO,EAAE,iBAAiB,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;mBAdU,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;;;oCA/Bc,CAAC;0BAA6B,CAAC;;;;;wBAGxD,CAAC;2BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAuhBskyiD,CAAC;kBAAwC,CAAC;;;;;;;;;;;;;;;;gCA1hBvnyiD,CAAC;sBAA6B,CAAC;;;;;oBAGxD,CAAC;uBAA8B,CAAC;;;;;;;;;;;;;gCAHP,CAAC;sBAA6B,CAAC;;;;;oBAGxD,CAAC;uBAA8B,CAAC;;;;;;;;;;;;;;;;;gCAHP,CAAC;sBAA6B,CAAC;;;;;oBAGxD,CAAC;uBAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;gCAHP,CAAC;sBAA6B,CAAC;;;;;oBAGxD,CAAC;uBAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBA2BrB,MAAM;iBACZ,MAAM;;;;;;;;;;;;;;;;;;;uBADA,MAAM;iBACZ,MAAM;;;;;;;;;;;;;;;;;;;;mBADA,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;;;;;;mBADA,MAAM;aACZ,MAAM;;;;;;;;;;;;;;;;IA0fZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainSTokeRewards.d.ts","sourceRoot":"","sources":["../../functions/getChainSTokeRewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAM9E,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,cAExC;IACD,OAAO,EAAE,iBAAiB,CAAC;CAC5B;;iBAagB,MAAM;oBAAc,MAAM;6BAAuB,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"getChainSTokeRewards.d.ts","sourceRoot":"","sources":["../../functions/getChainSTokeRewards.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAM9E,MAAM,MAAM,qBAAqB,GAAG,OAAO,CACzC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CACxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAU,cAExC;IACD,OAAO,EAAE,iBAAiB,CAAC;CAC5B;;iBAagB,MAAM;oBAAc,MAAM;6BAAuB,MAAM;;;;;;SAyDvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getChainUserActivity.d.ts","sourceRoot":"","sources":["../../functions/getChainUserActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,iBAAiB,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,oBAAoB,GAC/B,UAAU,OAAO,EACjB,UAAS,iBAAqB;;mBAoBf,MAAM;qBACJ,MAAM;qBACN,MAAM;sBACL,MAAM;mBACT,SAAS;;;
|
|
1
|
+
{"version":3,"file":"getChainUserActivity.d.ts","sourceRoot":"","sources":["../../functions/getChainUserActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,MAAM,MAAM,sBAAsB,GAAG;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG;QACb,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,iBAAiB,CAAC;KAC5B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnF,eAAO,MAAM,oBAAoB,GAC/B,UAAU,OAAO,EACjB,UAAS,iBAAqB;;mBAoBf,MAAM;qBACJ,MAAM;qBACN,MAAM;sBACL,MAAM;mBACT,SAAS;;;EA4DzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCombinedRewards.d.ts","sourceRoot":"","sources":["../../functions/getCombinedRewards.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"getCombinedRewards.d.ts","sourceRoot":"","sources":["../../functions/getCombinedRewards.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,mBAAmB,GAAG,OAAO,CACvC,UAAU,CAAC,OAAO,kBAAkB,CAAC,CACtC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;EAgE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getMultipleAutopoolRebalances.d.ts","sourceRoot":"","sources":["../../functions/getMultipleAutopoolRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EAAE,EACd,UAAS,iBAAqB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getMultipleAutopoolRebalances.d.ts","sourceRoot":"","sources":["../../functions/getMultipleAutopoolRebalances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,6BAA6B,GACxC,KAAK,OAAO,EAAE,EACd,UAAS,iBAAqB;;;;;;;;;kBASq79jD,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;;kBAA4G,CAAC;;;;;;sBAAkN,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;sBAAkG,CAAC;;;gBAAsG,CAAC;kBAA2C,CAAC;;;IAD1vgkD,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export declare const BASE_ASSETS: readonly [{
|
|
2
2
|
readonly symbol: "ETH";
|
|
3
3
|
readonly coinGeckoId: "ethereum";
|
|
4
|
-
readonly address:
|
|
4
|
+
readonly address: `0x${string}`;
|
|
5
5
|
readonly chainId: number;
|
|
6
6
|
readonly decimals: number;
|
|
7
7
|
readonly logoURI: string;
|
|
8
8
|
readonly name: string;
|
|
9
9
|
readonly audits?: string;
|
|
10
10
|
readonly extensions?: {
|
|
11
|
-
bridgeMainnetAdapter?:
|
|
11
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
12
12
|
bridgeInfo?: {
|
|
13
13
|
[chainId: number]: {
|
|
14
|
-
tokenAddress:
|
|
14
|
+
tokenAddress: `0x${string}`;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
rebasing?: boolean;
|
|
@@ -20,17 +20,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
20
20
|
}, {
|
|
21
21
|
readonly symbol: "PXETH";
|
|
22
22
|
readonly coinGeckoId: "dinero-staked-eth";
|
|
23
|
-
readonly address:
|
|
23
|
+
readonly address: `0x${string}`;
|
|
24
24
|
readonly chainId: number;
|
|
25
25
|
readonly decimals: number;
|
|
26
26
|
readonly logoURI: string;
|
|
27
27
|
readonly name: string;
|
|
28
28
|
readonly audits?: string;
|
|
29
29
|
readonly extensions?: {
|
|
30
|
-
bridgeMainnetAdapter?:
|
|
30
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
31
31
|
bridgeInfo?: {
|
|
32
32
|
[chainId: number]: {
|
|
33
|
-
tokenAddress:
|
|
33
|
+
tokenAddress: `0x${string}`;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
rebasing?: boolean;
|
|
@@ -39,17 +39,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
39
39
|
}, {
|
|
40
40
|
readonly symbol: "USDC";
|
|
41
41
|
readonly coinGeckoId: "usd-coin";
|
|
42
|
-
readonly address:
|
|
42
|
+
readonly address: `0x${string}`;
|
|
43
43
|
readonly chainId: number;
|
|
44
44
|
readonly decimals: number;
|
|
45
45
|
readonly logoURI: string;
|
|
46
46
|
readonly name: string;
|
|
47
47
|
readonly audits?: string;
|
|
48
48
|
readonly extensions?: {
|
|
49
|
-
bridgeMainnetAdapter?:
|
|
49
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
50
50
|
bridgeInfo?: {
|
|
51
51
|
[chainId: number]: {
|
|
52
|
-
tokenAddress:
|
|
52
|
+
tokenAddress: `0x${string}`;
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
55
|
rebasing?: boolean;
|
|
@@ -58,17 +58,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
58
58
|
}, {
|
|
59
59
|
readonly symbol: "DOLA";
|
|
60
60
|
readonly coinGeckoId: "dola-usd";
|
|
61
|
-
readonly address:
|
|
61
|
+
readonly address: `0x${string}`;
|
|
62
62
|
readonly chainId: number;
|
|
63
63
|
readonly decimals: number;
|
|
64
64
|
readonly logoURI: string;
|
|
65
65
|
readonly name: string;
|
|
66
66
|
readonly audits?: string;
|
|
67
67
|
readonly extensions?: {
|
|
68
|
-
bridgeMainnetAdapter?:
|
|
68
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
69
69
|
bridgeInfo?: {
|
|
70
70
|
[chainId: number]: {
|
|
71
|
-
tokenAddress:
|
|
71
|
+
tokenAddress: `0x${string}`;
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
rebasing?: boolean;
|
|
@@ -76,17 +76,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
76
76
|
};
|
|
77
77
|
}, {
|
|
78
78
|
readonly symbol: "S";
|
|
79
|
-
readonly address:
|
|
79
|
+
readonly address: `0x${string}`;
|
|
80
80
|
readonly chainId: number;
|
|
81
81
|
readonly decimals: number;
|
|
82
82
|
readonly logoURI: string;
|
|
83
83
|
readonly name: string;
|
|
84
84
|
readonly audits?: string;
|
|
85
85
|
readonly extensions?: {
|
|
86
|
-
bridgeMainnetAdapter?:
|
|
86
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
87
87
|
bridgeInfo?: {
|
|
88
88
|
[chainId: number]: {
|
|
89
|
-
tokenAddress:
|
|
89
|
+
tokenAddress: `0x${string}`;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
rebasing?: boolean;
|
|
@@ -95,17 +95,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
95
95
|
}, {
|
|
96
96
|
readonly symbol: "EURC";
|
|
97
97
|
readonly coinGeckoId: "euro-coin";
|
|
98
|
-
readonly address:
|
|
98
|
+
readonly address: `0x${string}`;
|
|
99
99
|
readonly chainId: number;
|
|
100
100
|
readonly decimals: number;
|
|
101
101
|
readonly logoURI: string;
|
|
102
102
|
readonly name: string;
|
|
103
103
|
readonly audits?: string;
|
|
104
104
|
readonly extensions?: {
|
|
105
|
-
bridgeMainnetAdapter?:
|
|
105
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
106
106
|
bridgeInfo?: {
|
|
107
107
|
[chainId: number]: {
|
|
108
|
-
tokenAddress:
|
|
108
|
+
tokenAddress: `0x${string}`;
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
rebasing?: boolean;
|
|
@@ -114,17 +114,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
114
114
|
}, {
|
|
115
115
|
readonly symbol: "USDT";
|
|
116
116
|
readonly coinGeckoId: "tether";
|
|
117
|
-
readonly address:
|
|
117
|
+
readonly address: `0x${string}`;
|
|
118
118
|
readonly chainId: number;
|
|
119
119
|
readonly decimals: number;
|
|
120
120
|
readonly logoURI: string;
|
|
121
121
|
readonly name: string;
|
|
122
122
|
readonly audits?: string;
|
|
123
123
|
readonly extensions?: {
|
|
124
|
-
bridgeMainnetAdapter?:
|
|
124
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
125
125
|
bridgeInfo?: {
|
|
126
126
|
[chainId: number]: {
|
|
127
|
-
tokenAddress:
|
|
127
|
+
tokenAddress: `0x${string}`;
|
|
128
128
|
};
|
|
129
129
|
};
|
|
130
130
|
rebasing?: boolean;
|
|
@@ -133,17 +133,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
133
133
|
}, {
|
|
134
134
|
readonly symbol: "USDT0";
|
|
135
135
|
readonly coinGeckoId: "tether";
|
|
136
|
-
readonly address:
|
|
136
|
+
readonly address: `0x${string}`;
|
|
137
137
|
readonly chainId: number;
|
|
138
138
|
readonly decimals: number;
|
|
139
139
|
readonly logoURI: string;
|
|
140
140
|
readonly name: string;
|
|
141
141
|
readonly audits?: string;
|
|
142
142
|
readonly extensions?: {
|
|
143
|
-
bridgeMainnetAdapter?:
|
|
143
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
144
144
|
bridgeInfo?: {
|
|
145
145
|
[chainId: number]: {
|
|
146
|
-
tokenAddress:
|
|
146
|
+
tokenAddress: `0x${string}`;
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
rebasing?: boolean;
|
|
@@ -153,17 +153,17 @@ export declare const BASE_ASSETS: readonly [{
|
|
|
153
153
|
export declare const PRICED_TOKENS: readonly [{
|
|
154
154
|
readonly symbol: "ETH";
|
|
155
155
|
readonly coinGeckoId: "ethereum";
|
|
156
|
-
readonly address:
|
|
156
|
+
readonly address: `0x${string}`;
|
|
157
157
|
readonly chainId: number;
|
|
158
158
|
readonly decimals: number;
|
|
159
159
|
readonly logoURI: string;
|
|
160
160
|
readonly name: string;
|
|
161
161
|
readonly audits?: string;
|
|
162
162
|
readonly extensions?: {
|
|
163
|
-
bridgeMainnetAdapter?:
|
|
163
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
164
164
|
bridgeInfo?: {
|
|
165
165
|
[chainId: number]: {
|
|
166
|
-
tokenAddress:
|
|
166
|
+
tokenAddress: `0x${string}`;
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
169
|
rebasing?: boolean;
|
|
@@ -172,17 +172,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
172
172
|
}, {
|
|
173
173
|
readonly symbol: "PXETH";
|
|
174
174
|
readonly coinGeckoId: "dinero-staked-eth";
|
|
175
|
-
readonly address:
|
|
175
|
+
readonly address: `0x${string}`;
|
|
176
176
|
readonly chainId: number;
|
|
177
177
|
readonly decimals: number;
|
|
178
178
|
readonly logoURI: string;
|
|
179
179
|
readonly name: string;
|
|
180
180
|
readonly audits?: string;
|
|
181
181
|
readonly extensions?: {
|
|
182
|
-
bridgeMainnetAdapter?:
|
|
182
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
183
183
|
bridgeInfo?: {
|
|
184
184
|
[chainId: number]: {
|
|
185
|
-
tokenAddress:
|
|
185
|
+
tokenAddress: `0x${string}`;
|
|
186
186
|
};
|
|
187
187
|
};
|
|
188
188
|
rebasing?: boolean;
|
|
@@ -191,17 +191,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
191
191
|
}, {
|
|
192
192
|
readonly symbol: "USDC";
|
|
193
193
|
readonly coinGeckoId: "usd-coin";
|
|
194
|
-
readonly address:
|
|
194
|
+
readonly address: `0x${string}`;
|
|
195
195
|
readonly chainId: number;
|
|
196
196
|
readonly decimals: number;
|
|
197
197
|
readonly logoURI: string;
|
|
198
198
|
readonly name: string;
|
|
199
199
|
readonly audits?: string;
|
|
200
200
|
readonly extensions?: {
|
|
201
|
-
bridgeMainnetAdapter?:
|
|
201
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
202
202
|
bridgeInfo?: {
|
|
203
203
|
[chainId: number]: {
|
|
204
|
-
tokenAddress:
|
|
204
|
+
tokenAddress: `0x${string}`;
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
207
|
rebasing?: boolean;
|
|
@@ -210,17 +210,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
210
210
|
}, {
|
|
211
211
|
readonly symbol: "DOLA";
|
|
212
212
|
readonly coinGeckoId: "dola-usd";
|
|
213
|
-
readonly address:
|
|
213
|
+
readonly address: `0x${string}`;
|
|
214
214
|
readonly chainId: number;
|
|
215
215
|
readonly decimals: number;
|
|
216
216
|
readonly logoURI: string;
|
|
217
217
|
readonly name: string;
|
|
218
218
|
readonly audits?: string;
|
|
219
219
|
readonly extensions?: {
|
|
220
|
-
bridgeMainnetAdapter?:
|
|
220
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
221
221
|
bridgeInfo?: {
|
|
222
222
|
[chainId: number]: {
|
|
223
|
-
tokenAddress:
|
|
223
|
+
tokenAddress: `0x${string}`;
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
rebasing?: boolean;
|
|
@@ -228,17 +228,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
228
228
|
};
|
|
229
229
|
}, {
|
|
230
230
|
readonly symbol: "S";
|
|
231
|
-
readonly address:
|
|
231
|
+
readonly address: `0x${string}`;
|
|
232
232
|
readonly chainId: number;
|
|
233
233
|
readonly decimals: number;
|
|
234
234
|
readonly logoURI: string;
|
|
235
235
|
readonly name: string;
|
|
236
236
|
readonly audits?: string;
|
|
237
237
|
readonly extensions?: {
|
|
238
|
-
bridgeMainnetAdapter?:
|
|
238
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
239
239
|
bridgeInfo?: {
|
|
240
240
|
[chainId: number]: {
|
|
241
|
-
tokenAddress:
|
|
241
|
+
tokenAddress: `0x${string}`;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
rebasing?: boolean;
|
|
@@ -247,17 +247,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
247
247
|
}, {
|
|
248
248
|
readonly symbol: "EURC";
|
|
249
249
|
readonly coinGeckoId: "euro-coin";
|
|
250
|
-
readonly address:
|
|
250
|
+
readonly address: `0x${string}`;
|
|
251
251
|
readonly chainId: number;
|
|
252
252
|
readonly decimals: number;
|
|
253
253
|
readonly logoURI: string;
|
|
254
254
|
readonly name: string;
|
|
255
255
|
readonly audits?: string;
|
|
256
256
|
readonly extensions?: {
|
|
257
|
-
bridgeMainnetAdapter?:
|
|
257
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
258
258
|
bridgeInfo?: {
|
|
259
259
|
[chainId: number]: {
|
|
260
|
-
tokenAddress:
|
|
260
|
+
tokenAddress: `0x${string}`;
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
rebasing?: boolean;
|
|
@@ -266,17 +266,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
266
266
|
}, {
|
|
267
267
|
readonly symbol: "USDT";
|
|
268
268
|
readonly coinGeckoId: "tether";
|
|
269
|
-
readonly address:
|
|
269
|
+
readonly address: `0x${string}`;
|
|
270
270
|
readonly chainId: number;
|
|
271
271
|
readonly decimals: number;
|
|
272
272
|
readonly logoURI: string;
|
|
273
273
|
readonly name: string;
|
|
274
274
|
readonly audits?: string;
|
|
275
275
|
readonly extensions?: {
|
|
276
|
-
bridgeMainnetAdapter?:
|
|
276
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
277
277
|
bridgeInfo?: {
|
|
278
278
|
[chainId: number]: {
|
|
279
|
-
tokenAddress:
|
|
279
|
+
tokenAddress: `0x${string}`;
|
|
280
280
|
};
|
|
281
281
|
};
|
|
282
282
|
rebasing?: boolean;
|
|
@@ -285,17 +285,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
285
285
|
}, {
|
|
286
286
|
readonly symbol: "USDT0";
|
|
287
287
|
readonly coinGeckoId: "tether";
|
|
288
|
-
readonly address:
|
|
288
|
+
readonly address: `0x${string}`;
|
|
289
289
|
readonly chainId: number;
|
|
290
290
|
readonly decimals: number;
|
|
291
291
|
readonly logoURI: string;
|
|
292
292
|
readonly name: string;
|
|
293
293
|
readonly audits?: string;
|
|
294
294
|
readonly extensions?: {
|
|
295
|
-
bridgeMainnetAdapter?:
|
|
295
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
296
296
|
bridgeInfo?: {
|
|
297
297
|
[chainId: number]: {
|
|
298
|
-
tokenAddress:
|
|
298
|
+
tokenAddress: `0x${string}`;
|
|
299
299
|
};
|
|
300
300
|
};
|
|
301
301
|
rebasing?: boolean;
|
|
@@ -303,17 +303,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
303
303
|
};
|
|
304
304
|
}, {
|
|
305
305
|
readonly symbol: "TOKE";
|
|
306
|
-
readonly address:
|
|
306
|
+
readonly address: `0x${string}`;
|
|
307
307
|
readonly chainId: number;
|
|
308
308
|
readonly decimals: number;
|
|
309
309
|
readonly logoURI: string;
|
|
310
310
|
readonly name: string;
|
|
311
311
|
readonly audits?: string;
|
|
312
312
|
readonly extensions?: {
|
|
313
|
-
bridgeMainnetAdapter?:
|
|
313
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
314
314
|
bridgeInfo?: {
|
|
315
315
|
[chainId: number]: {
|
|
316
|
-
tokenAddress:
|
|
316
|
+
tokenAddress: `0x${string}`;
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
rebasing?: boolean;
|
|
@@ -321,17 +321,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
321
321
|
};
|
|
322
322
|
}, {
|
|
323
323
|
readonly symbol: "AUTO";
|
|
324
|
-
readonly address:
|
|
324
|
+
readonly address: `0x${string}`;
|
|
325
325
|
readonly chainId: number;
|
|
326
326
|
readonly decimals: number;
|
|
327
327
|
readonly logoURI: string;
|
|
328
328
|
readonly name: string;
|
|
329
329
|
readonly audits?: string;
|
|
330
330
|
readonly extensions?: {
|
|
331
|
-
bridgeMainnetAdapter?:
|
|
331
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
332
332
|
bridgeInfo?: {
|
|
333
333
|
[chainId: number]: {
|
|
334
|
-
tokenAddress:
|
|
334
|
+
tokenAddress: `0x${string}`;
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
337
|
rebasing?: boolean;
|
|
@@ -339,17 +339,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
339
339
|
};
|
|
340
340
|
}, {
|
|
341
341
|
readonly symbol: "SILO";
|
|
342
|
-
readonly address:
|
|
342
|
+
readonly address: `0x${string}`;
|
|
343
343
|
readonly chainId: number;
|
|
344
344
|
readonly decimals: number;
|
|
345
345
|
readonly logoURI: string;
|
|
346
346
|
readonly name: string;
|
|
347
347
|
readonly audits?: string;
|
|
348
348
|
readonly extensions?: {
|
|
349
|
-
bridgeMainnetAdapter?:
|
|
349
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
350
350
|
bridgeInfo?: {
|
|
351
351
|
[chainId: number]: {
|
|
352
|
-
tokenAddress:
|
|
352
|
+
tokenAddress: `0x${string}`;
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
355
|
rebasing?: boolean;
|
|
@@ -364,10 +364,10 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
364
364
|
readonly name: string;
|
|
365
365
|
readonly audits?: string;
|
|
366
366
|
readonly extensions?: {
|
|
367
|
-
bridgeMainnetAdapter?:
|
|
367
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
368
368
|
bridgeInfo?: {
|
|
369
369
|
[chainId: number]: {
|
|
370
|
-
tokenAddress:
|
|
370
|
+
tokenAddress: `0x${string}`;
|
|
371
371
|
};
|
|
372
372
|
};
|
|
373
373
|
rebasing?: boolean;
|
|
@@ -375,17 +375,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
375
375
|
};
|
|
376
376
|
}, {
|
|
377
377
|
readonly symbol: "USDT0";
|
|
378
|
-
readonly address:
|
|
378
|
+
readonly address: `0x${string}`;
|
|
379
379
|
readonly chainId: number;
|
|
380
380
|
readonly decimals: number;
|
|
381
381
|
readonly logoURI: string;
|
|
382
382
|
readonly name: string;
|
|
383
383
|
readonly audits?: string;
|
|
384
384
|
readonly extensions?: {
|
|
385
|
-
bridgeMainnetAdapter?:
|
|
385
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
386
386
|
bridgeInfo?: {
|
|
387
387
|
[chainId: number]: {
|
|
388
|
-
tokenAddress:
|
|
388
|
+
tokenAddress: `0x${string}`;
|
|
389
389
|
};
|
|
390
390
|
};
|
|
391
391
|
rebasing?: boolean;
|
|
@@ -395,17 +395,17 @@ export declare const PRICED_TOKENS: readonly [{
|
|
|
395
395
|
export type BaseAsset = (typeof BASE_ASSETS)[number]["symbol"];
|
|
396
396
|
declare const WRAPPED_TOKENS: readonly [{
|
|
397
397
|
readonly symbol: "WETH";
|
|
398
|
-
readonly address:
|
|
398
|
+
readonly address: `0x${string}`;
|
|
399
399
|
readonly chainId: number;
|
|
400
400
|
readonly decimals: number;
|
|
401
401
|
readonly logoURI: string;
|
|
402
402
|
readonly name: string;
|
|
403
403
|
readonly audits?: string;
|
|
404
404
|
readonly extensions?: {
|
|
405
|
-
bridgeMainnetAdapter?:
|
|
405
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
406
406
|
bridgeInfo?: {
|
|
407
407
|
[chainId: number]: {
|
|
408
|
-
tokenAddress:
|
|
408
|
+
tokenAddress: `0x${string}`;
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
411
|
rebasing?: boolean;
|
|
@@ -413,17 +413,17 @@ declare const WRAPPED_TOKENS: readonly [{
|
|
|
413
413
|
};
|
|
414
414
|
}, {
|
|
415
415
|
readonly symbol: "WS";
|
|
416
|
-
readonly address:
|
|
416
|
+
readonly address: `0x${string}`;
|
|
417
417
|
readonly chainId: number;
|
|
418
418
|
readonly decimals: number;
|
|
419
419
|
readonly logoURI: string;
|
|
420
420
|
readonly name: string;
|
|
421
421
|
readonly audits?: string;
|
|
422
422
|
readonly extensions?: {
|
|
423
|
-
bridgeMainnetAdapter?:
|
|
423
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
424
424
|
bridgeInfo?: {
|
|
425
425
|
[chainId: number]: {
|
|
426
|
-
tokenAddress:
|
|
426
|
+
tokenAddress: `0x${string}`;
|
|
427
427
|
};
|
|
428
428
|
};
|
|
429
429
|
rebasing?: boolean;
|
|
@@ -431,17 +431,17 @@ declare const WRAPPED_TOKENS: readonly [{
|
|
|
431
431
|
};
|
|
432
432
|
}, {
|
|
433
433
|
readonly symbol: "WXPL";
|
|
434
|
-
readonly address:
|
|
434
|
+
readonly address: `0x${string}`;
|
|
435
435
|
readonly chainId: number;
|
|
436
436
|
readonly decimals: number;
|
|
437
437
|
readonly logoURI: string;
|
|
438
438
|
readonly name: string;
|
|
439
439
|
readonly audits?: string;
|
|
440
440
|
readonly extensions?: {
|
|
441
|
-
bridgeMainnetAdapter?:
|
|
441
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
442
442
|
bridgeInfo?: {
|
|
443
443
|
[chainId: number]: {
|
|
444
|
-
tokenAddress:
|
|
444
|
+
tokenAddress: `0x${string}`;
|
|
445
445
|
};
|
|
446
446
|
};
|
|
447
447
|
rebasing?: boolean;
|
|
@@ -31,7 +31,7 @@ export declare const getUserAutopool: (wagmiConfig: Config, { address, autopool,
|
|
|
31
31
|
useDenomination: boolean;
|
|
32
32
|
denomination: {
|
|
33
33
|
price: number;
|
|
34
|
-
address:
|
|
34
|
+
address: `0x${string}`;
|
|
35
35
|
chainId: number;
|
|
36
36
|
decimals: number;
|
|
37
37
|
logoURI: string;
|
|
@@ -39,10 +39,10 @@ export declare const getUserAutopool: (wagmiConfig: Config, { address, autopool,
|
|
|
39
39
|
symbol: string;
|
|
40
40
|
audits?: string;
|
|
41
41
|
extensions?: {
|
|
42
|
-
bridgeMainnetAdapter?:
|
|
42
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
43
43
|
bridgeInfo?: {
|
|
44
44
|
[chainId: number]: {
|
|
45
|
-
tokenAddress:
|
|
45
|
+
tokenAddress: `0x${string}`;
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
rebasing?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserAutopoolBalanceChanges.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopoolBalanceChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,6BAA6B,GAAU,6BAGjD;IACD,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;;;;;
|
|
1
|
+
{"version":3,"file":"getUserAutopoolBalanceChanges.d.ts","sourceRoot":"","sources":["../../functions/getUserAutopoolBalanceChanges.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,eAAO,MAAM,6BAA6B,GAAU,6BAGjD;IACD,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC7B;;;;;kBA0BivmkD,CAAC;;;;;IADlvmkD,CAAC"}
|
|
@@ -201,7 +201,7 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
201
201
|
allocation: number;
|
|
202
202
|
valueUsd: number;
|
|
203
203
|
value: number;
|
|
204
|
-
address:
|
|
204
|
+
address: `0x${string}`;
|
|
205
205
|
chainId: number;
|
|
206
206
|
decimals: number;
|
|
207
207
|
logoURI: string;
|
|
@@ -209,10 +209,10 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
209
209
|
symbol: string;
|
|
210
210
|
audits?: string;
|
|
211
211
|
extensions?: {
|
|
212
|
-
bridgeMainnetAdapter?:
|
|
212
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
213
213
|
bridgeInfo?: {
|
|
214
214
|
[chainId: number]: {
|
|
215
|
-
tokenAddress:
|
|
215
|
+
tokenAddress: `0x${string}`;
|
|
216
216
|
};
|
|
217
217
|
};
|
|
218
218
|
rebasing?: boolean;
|
|
@@ -227,7 +227,7 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
227
227
|
underlyingTokens: {
|
|
228
228
|
valueUsd: number;
|
|
229
229
|
value: number;
|
|
230
|
-
address:
|
|
230
|
+
address: `0x${string}`;
|
|
231
231
|
chainId: number;
|
|
232
232
|
decimals: number;
|
|
233
233
|
logoURI: string;
|
|
@@ -235,10 +235,10 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
235
235
|
symbol: string;
|
|
236
236
|
audits?: string;
|
|
237
237
|
extensions?: {
|
|
238
|
-
bridgeMainnetAdapter?:
|
|
238
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
239
239
|
bridgeInfo?: {
|
|
240
240
|
[chainId: number]: {
|
|
241
|
-
tokenAddress:
|
|
241
|
+
tokenAddress: `0x${string}`;
|
|
242
242
|
};
|
|
243
243
|
};
|
|
244
244
|
rebasing?: boolean;
|
|
@@ -392,7 +392,7 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
392
392
|
baseAsset: IToken;
|
|
393
393
|
denomination: {
|
|
394
394
|
price: number;
|
|
395
|
-
address:
|
|
395
|
+
address: `0x${string}`;
|
|
396
396
|
chainId: number;
|
|
397
397
|
decimals: number;
|
|
398
398
|
logoURI: string;
|
|
@@ -400,10 +400,10 @@ export declare const getUserAutopools: ({ address, includeTestnet, autopools, us
|
|
|
400
400
|
symbol: string;
|
|
401
401
|
audits?: string;
|
|
402
402
|
extensions?: {
|
|
403
|
-
bridgeMainnetAdapter?:
|
|
403
|
+
bridgeMainnetAdapter?: `0x${string}`;
|
|
404
404
|
bridgeInfo?: {
|
|
405
405
|
[chainId: number]: {
|
|
406
|
-
tokenAddress:
|
|
406
|
+
tokenAddress: `0x${string}`;
|
|
407
407
|
};
|
|
408
408
|
};
|
|
409
409
|
rebasing?: boolean;
|
|
@@ -17,6 +17,7 @@ export declare const getUserMerklRewards: (address: Address) => Promise<{
|
|
|
17
17
|
pending: string;
|
|
18
18
|
campaignId: string;
|
|
19
19
|
campaignStatus?: {
|
|
20
|
+
campaignId: string;
|
|
20
21
|
computedUntil: string | number;
|
|
21
22
|
processingStarted: string | number;
|
|
22
23
|
status: string;
|
|
@@ -24,7 +25,7 @@ export declare const getUserMerklRewards: (address: Address) => Promise<{
|
|
|
24
25
|
preComputeStatus: string;
|
|
25
26
|
delay?: number | undefined;
|
|
26
27
|
error?: string | undefined;
|
|
27
|
-
details?:
|
|
28
|
+
details?: unknown;
|
|
28
29
|
} | undefined;
|
|
29
30
|
}[];
|
|
30
31
|
claimed: string | bigint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserMerklRewards.d.ts","sourceRoot":"","sources":["../../functions/getUserMerklRewards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,eAAO,MAAM,mBAAmB,GAAU,SAAS,OAAO;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getUserMerklRewards.d.ts","sourceRoot":"","sources":["../../functions/getUserMerklRewards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,eAAO,MAAM,mBAAmB,GAAU,SAAS,OAAO;;;;;;;;;;;;;;;;;0BAkBsm3gC,CAAC;;;;;;;qBAA6e,CAAC;qBAAuE,CAAC;uBAAyE,CAAC;;;;;;;;EADhy4gC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5371,9 +5371,10 @@ var getChainSTokeRewards = async ({
|
|
|
5371
5371
|
totalEarnings += convertedBalance;
|
|
5372
5372
|
totalEarningsUsd += convertedBalanceUSD;
|
|
5373
5373
|
}
|
|
5374
|
-
const
|
|
5375
|
-
|
|
5374
|
+
const activeDayDatas = allPoolRewardsBalanceDayDatas.filter(
|
|
5375
|
+
(item) => item.balance !== "0"
|
|
5376
5376
|
);
|
|
5377
|
+
const historicalRewards = aggregateSTokeRewardsDayData(activeDayDatas);
|
|
5377
5378
|
const aprRange = [(minApr ?? 0) * 4, (maxApr ?? 0) * 16];
|
|
5378
5379
|
return {
|
|
5379
5380
|
autopools,
|
|
@@ -6311,36 +6312,45 @@ var getCombinedRewards = async () => {
|
|
|
6311
6312
|
]);
|
|
6312
6313
|
const totalEarnings = (stokeRewards?.totalEarnings || 0) + (sAutoRewards?.totalEarnings || 0);
|
|
6313
6314
|
const totalEarningsUsd = (stokeRewards?.totalEarningsUsd || 0) + (sAutoRewards?.totalEarningsUsd || 0);
|
|
6314
|
-
const
|
|
6315
|
+
const stokeByTs = /* @__PURE__ */ new Map();
|
|
6316
|
+
const sAutoByTs = /* @__PURE__ */ new Map();
|
|
6317
|
+
const dateByTs = /* @__PURE__ */ new Map();
|
|
6315
6318
|
for (const item of stokeRewards?.historicalRewards || []) {
|
|
6316
|
-
const
|
|
6317
|
-
const existing =
|
|
6319
|
+
const ts = Number(item.timestamp);
|
|
6320
|
+
const existing = stokeByTs.get(ts);
|
|
6318
6321
|
if (existing) {
|
|
6319
6322
|
existing.balance += item.balance;
|
|
6320
6323
|
existing.balanceUSD += item.balanceUSD;
|
|
6321
6324
|
} else {
|
|
6322
|
-
|
|
6323
|
-
balance: item.balance,
|
|
6324
|
-
balanceUSD: item.balanceUSD,
|
|
6325
|
-
formattedDate: item.formattedDate
|
|
6326
|
-
});
|
|
6325
|
+
stokeByTs.set(ts, { balance: item.balance, balanceUSD: item.balanceUSD });
|
|
6327
6326
|
}
|
|
6327
|
+
if (!dateByTs.has(ts)) dateByTs.set(ts, item.formattedDate);
|
|
6328
6328
|
}
|
|
6329
6329
|
for (const item of sAutoRewards?.historicalRewards || []) {
|
|
6330
|
-
const
|
|
6331
|
-
const existing =
|
|
6330
|
+
const ts = Number(item.timestamp);
|
|
6331
|
+
const existing = sAutoByTs.get(ts);
|
|
6332
6332
|
if (existing) {
|
|
6333
6333
|
existing.balance += item.balance;
|
|
6334
6334
|
existing.balanceUSD += item.balanceUSD;
|
|
6335
6335
|
} else {
|
|
6336
|
-
|
|
6337
|
-
balance: item.balance,
|
|
6338
|
-
balanceUSD: item.balanceUSD,
|
|
6339
|
-
formattedDate: item.formattedDate
|
|
6340
|
-
});
|
|
6336
|
+
sAutoByTs.set(ts, { balance: item.balance, balanceUSD: item.balanceUSD });
|
|
6341
6337
|
}
|
|
6338
|
+
if (!dateByTs.has(ts)) dateByTs.set(ts, item.formattedDate);
|
|
6342
6339
|
}
|
|
6343
|
-
const
|
|
6340
|
+
const allTimestamps = Array.from(
|
|
6341
|
+
/* @__PURE__ */ new Set([...stokeByTs.keys(), ...sAutoByTs.keys()])
|
|
6342
|
+
).sort((a, b) => a - b);
|
|
6343
|
+
let lastStoke = { balance: 0, balanceUSD: 0 };
|
|
6344
|
+
let lastSAuto = { balance: 0, balanceUSD: 0 };
|
|
6345
|
+
const historicalRewards = allTimestamps.map((ts) => {
|
|
6346
|
+
if (stokeByTs.has(ts)) lastStoke = stokeByTs.get(ts);
|
|
6347
|
+
if (sAutoByTs.has(ts)) lastSAuto = sAutoByTs.get(ts);
|
|
6348
|
+
return {
|
|
6349
|
+
balance: lastStoke.balance + lastSAuto.balance,
|
|
6350
|
+
balanceUSD: lastStoke.balanceUSD + lastSAuto.balanceUSD,
|
|
6351
|
+
formattedDate: dateByTs.get(ts)
|
|
6352
|
+
};
|
|
6353
|
+
});
|
|
6344
6354
|
return {
|
|
6345
6355
|
totalEarnings,
|
|
6346
6356
|
totalEarningsUsd,
|
package/dist/index.mjs
CHANGED
|
@@ -5317,9 +5317,10 @@ var getChainSTokeRewards = async ({
|
|
|
5317
5317
|
totalEarnings += convertedBalance;
|
|
5318
5318
|
totalEarningsUsd += convertedBalanceUSD;
|
|
5319
5319
|
}
|
|
5320
|
-
const
|
|
5321
|
-
|
|
5320
|
+
const activeDayDatas = allPoolRewardsBalanceDayDatas.filter(
|
|
5321
|
+
(item) => item.balance !== "0"
|
|
5322
5322
|
);
|
|
5323
|
+
const historicalRewards = aggregateSTokeRewardsDayData(activeDayDatas);
|
|
5323
5324
|
const aprRange = [(minApr ?? 0) * 4, (maxApr ?? 0) * 16];
|
|
5324
5325
|
return {
|
|
5325
5326
|
autopools,
|
|
@@ -6280,36 +6281,45 @@ var getCombinedRewards = async () => {
|
|
|
6280
6281
|
]);
|
|
6281
6282
|
const totalEarnings = (stokeRewards?.totalEarnings || 0) + (sAutoRewards?.totalEarnings || 0);
|
|
6282
6283
|
const totalEarningsUsd = (stokeRewards?.totalEarningsUsd || 0) + (sAutoRewards?.totalEarningsUsd || 0);
|
|
6283
|
-
const
|
|
6284
|
+
const stokeByTs = /* @__PURE__ */ new Map();
|
|
6285
|
+
const sAutoByTs = /* @__PURE__ */ new Map();
|
|
6286
|
+
const dateByTs = /* @__PURE__ */ new Map();
|
|
6284
6287
|
for (const item of stokeRewards?.historicalRewards || []) {
|
|
6285
|
-
const
|
|
6286
|
-
const existing =
|
|
6288
|
+
const ts = Number(item.timestamp);
|
|
6289
|
+
const existing = stokeByTs.get(ts);
|
|
6287
6290
|
if (existing) {
|
|
6288
6291
|
existing.balance += item.balance;
|
|
6289
6292
|
existing.balanceUSD += item.balanceUSD;
|
|
6290
6293
|
} else {
|
|
6291
|
-
|
|
6292
|
-
balance: item.balance,
|
|
6293
|
-
balanceUSD: item.balanceUSD,
|
|
6294
|
-
formattedDate: item.formattedDate
|
|
6295
|
-
});
|
|
6294
|
+
stokeByTs.set(ts, { balance: item.balance, balanceUSD: item.balanceUSD });
|
|
6296
6295
|
}
|
|
6296
|
+
if (!dateByTs.has(ts)) dateByTs.set(ts, item.formattedDate);
|
|
6297
6297
|
}
|
|
6298
6298
|
for (const item of sAutoRewards?.historicalRewards || []) {
|
|
6299
|
-
const
|
|
6300
|
-
const existing =
|
|
6299
|
+
const ts = Number(item.timestamp);
|
|
6300
|
+
const existing = sAutoByTs.get(ts);
|
|
6301
6301
|
if (existing) {
|
|
6302
6302
|
existing.balance += item.balance;
|
|
6303
6303
|
existing.balanceUSD += item.balanceUSD;
|
|
6304
6304
|
} else {
|
|
6305
|
-
|
|
6306
|
-
balance: item.balance,
|
|
6307
|
-
balanceUSD: item.balanceUSD,
|
|
6308
|
-
formattedDate: item.formattedDate
|
|
6309
|
-
});
|
|
6305
|
+
sAutoByTs.set(ts, { balance: item.balance, balanceUSD: item.balanceUSD });
|
|
6310
6306
|
}
|
|
6307
|
+
if (!dateByTs.has(ts)) dateByTs.set(ts, item.formattedDate);
|
|
6311
6308
|
}
|
|
6312
|
-
const
|
|
6309
|
+
const allTimestamps = Array.from(
|
|
6310
|
+
/* @__PURE__ */ new Set([...stokeByTs.keys(), ...sAutoByTs.keys()])
|
|
6311
|
+
).sort((a, b) => a - b);
|
|
6312
|
+
let lastStoke = { balance: 0, balanceUSD: 0 };
|
|
6313
|
+
let lastSAuto = { balance: 0, balanceUSD: 0 };
|
|
6314
|
+
const historicalRewards = allTimestamps.map((ts) => {
|
|
6315
|
+
if (stokeByTs.has(ts)) lastStoke = stokeByTs.get(ts);
|
|
6316
|
+
if (sAutoByTs.has(ts)) lastSAuto = sAutoByTs.get(ts);
|
|
6317
|
+
return {
|
|
6318
|
+
balance: lastStoke.balance + lastSAuto.balance,
|
|
6319
|
+
balanceUSD: lastStoke.balanceUSD + lastSAuto.balanceUSD,
|
|
6320
|
+
formattedDate: dateByTs.get(ts)
|
|
6321
|
+
};
|
|
6322
|
+
});
|
|
6313
6323
|
return {
|
|
6314
6324
|
totalEarnings,
|
|
6315
6325
|
totalEarningsUsd,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokemak/queries",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@merkl/api": "^1.8.22",
|
|
33
33
|
"graphql-request": "6.1.0",
|
|
34
34
|
"@tokemak/config": "0.1.1",
|
|
35
|
-
"@tokemak/graph-cli": "0.1.3",
|
|
36
|
-
"@tokemak/abis": "0.1.1",
|
|
37
|
-
"@tokemak/utils": "0.1.3",
|
|
38
35
|
"@tokemak/constants": "0.1.2",
|
|
39
|
-
"@tokemak/tokenlist": "0.1.2"
|
|
36
|
+
"@tokemak/tokenlist": "0.1.2",
|
|
37
|
+
"@tokemak/graph-cli": "0.2.1",
|
|
38
|
+
"@tokemak/abis": "0.1.1",
|
|
39
|
+
"@tokemak/utils": "0.1.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@wagmi/core": "2.
|
|
42
|
+
"@wagmi/core": ">=2.9.0",
|
|
43
43
|
"viem": "2.x",
|
|
44
|
-
"wagmi": "2.
|
|
44
|
+
"wagmi": ">=2.9.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsup && tsc --emitDeclarationOnly",
|