@embarkai/ui-kit 0.4.62 → 0.4.64
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +1822 -1778
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +1739 -1695
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -180,6 +180,14 @@ interface ProjectAsset extends Omit<Asset, 'type'> {
|
|
|
180
180
|
balanceQuery: () => Promise<ProjectAssetBalance>;
|
|
181
181
|
hideInPortfolio?: boolean;
|
|
182
182
|
}
|
|
183
|
+
interface AssetRateQueryInput {
|
|
184
|
+
symbol: string;
|
|
185
|
+
address?: `0x${string}`;
|
|
186
|
+
}
|
|
187
|
+
interface AssetRateQueryResult {
|
|
188
|
+
symbol: string;
|
|
189
|
+
price: string;
|
|
190
|
+
}
|
|
183
191
|
/**
|
|
184
192
|
* Token configuration for custom token watching.
|
|
185
193
|
* Used when chain doesn't have Blockscout API or for project-specific tokens.
|
|
@@ -238,6 +246,8 @@ interface ProviderConfig {
|
|
|
238
246
|
portfolio?: {
|
|
239
247
|
tokenBalancesQuery?: (address: `0x${string}`) => Promise<BlockscoutTokenBalance[]>;
|
|
240
248
|
tokenBalancesQueryKey?: readonly unknown[];
|
|
249
|
+
assetRateQuery?: (input: AssetRateQueryInput) => Promise<AssetRateQueryResult | null>;
|
|
250
|
+
assetRateQueryKey?: readonly unknown[];
|
|
241
251
|
};
|
|
242
252
|
/**
|
|
243
253
|
* Custom tokens to monitor per chain.
|
package/dist/index.d.ts
CHANGED
|
@@ -180,6 +180,14 @@ interface ProjectAsset extends Omit<Asset, 'type'> {
|
|
|
180
180
|
balanceQuery: () => Promise<ProjectAssetBalance>;
|
|
181
181
|
hideInPortfolio?: boolean;
|
|
182
182
|
}
|
|
183
|
+
interface AssetRateQueryInput {
|
|
184
|
+
symbol: string;
|
|
185
|
+
address?: `0x${string}`;
|
|
186
|
+
}
|
|
187
|
+
interface AssetRateQueryResult {
|
|
188
|
+
symbol: string;
|
|
189
|
+
price: string;
|
|
190
|
+
}
|
|
183
191
|
/**
|
|
184
192
|
* Token configuration for custom token watching.
|
|
185
193
|
* Used when chain doesn't have Blockscout API or for project-specific tokens.
|
|
@@ -238,6 +246,8 @@ interface ProviderConfig {
|
|
|
238
246
|
portfolio?: {
|
|
239
247
|
tokenBalancesQuery?: (address: `0x${string}`) => Promise<BlockscoutTokenBalance[]>;
|
|
240
248
|
tokenBalancesQueryKey?: readonly unknown[];
|
|
249
|
+
assetRateQuery?: (input: AssetRateQueryInput) => Promise<AssetRateQueryResult | null>;
|
|
250
|
+
assetRateQueryKey?: readonly unknown[];
|
|
241
251
|
};
|
|
242
252
|
/**
|
|
243
253
|
* Custom tokens to monitor per chain.
|