@covalenthq/client-sdk 0.6.0 → 0.6.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/cjs/index.js +16 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/services/BalanceService.d.ts +20 -0
- package/dist/cjs/services/CovalentClient.d.ts +1 -1
- package/dist/cjs/util/types/BalanceServiceTypes.d.ts +18 -0
- package/dist/es/index.js +16 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/services/BalanceService.d.ts +20 -0
- package/dist/es/services/CovalentClient.d.ts +1 -1
- package/dist/es/util/types/BalanceServiceTypes.d.ts +18 -0
- package/dist/esm/index.js +16 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/services/BalanceService.d.ts +20 -0
- package/dist/esm/services/CovalentClient.d.ts +1 -1
- package/dist/esm/util/types/BalanceServiceTypes.d.ts +18 -0
- package/dist/services/BalanceService.d.ts +20 -0
- package/dist/services/BalanceService.js +15 -0
- package/dist/services/BalanceService.js.map +1 -1
- package/dist/services/CovalentClient.d.ts +1 -1
- package/dist/services/CovalentClient.js +1 -1
- package/dist/util/types/BalanceServiceTypes.d.ts +18 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -524,6 +524,7 @@ class BalanceItem {
|
|
|
524
524
|
this.contract_name = data.contract_name;
|
|
525
525
|
this.contract_ticker_symbol = data.contract_ticker_symbol;
|
|
526
526
|
this.contract_address = data.contract_address;
|
|
527
|
+
this.contract_display_name = data.contract_display_name;
|
|
527
528
|
this.supports_erc = data.supports_erc;
|
|
528
529
|
this.logo_url = data.logo_url;
|
|
529
530
|
this.last_transferred_at = data.last_transferred_at && data.last_transferred_at !== null ? dateFns.parseISO(data.last_transferred_at.toString()) : null;
|
|
@@ -538,9 +539,23 @@ class BalanceItem {
|
|
|
538
539
|
this.quote_24h = data.quote_24h;
|
|
539
540
|
this.pretty_quote = data.pretty_quote;
|
|
540
541
|
this.pretty_quote_24h = data.pretty_quote_24h;
|
|
542
|
+
this.logo_urls = data.logo_urls && data.logo_urls !== null ? new LogoUrls(data.logo_urls) : null;
|
|
543
|
+
this.protocol_metadata = data.protocol_metadata && data.protocol_metadata !== null ? new ProtocolMetadata(data.protocol_metadata) : null;
|
|
541
544
|
this.nft_data = data.nft_data && data.nft_data !== null ? data.nft_data.map((itemData) => new NftData$1(itemData)) : null;
|
|
542
545
|
}
|
|
543
546
|
}
|
|
547
|
+
class LogoUrls {
|
|
548
|
+
constructor(data) {
|
|
549
|
+
this.token_logo_url = data.token_logo_url;
|
|
550
|
+
this.protocol_logo_url = data.protocol_logo_url;
|
|
551
|
+
this.chain_logo_url = data.chain_logo_url;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
class ProtocolMetadata {
|
|
555
|
+
constructor(data) {
|
|
556
|
+
this.protocol_name = data.protocol_name;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
544
559
|
let NftData$1 = class NftData {
|
|
545
560
|
constructor(data) {
|
|
546
561
|
this.token_id = data.token_id && data.token_id !== null ? BigInt(data.token_id) : null;
|
|
@@ -5852,7 +5867,7 @@ class XykService {
|
|
|
5852
5867
|
}
|
|
5853
5868
|
}
|
|
5854
5869
|
|
|
5855
|
-
const userAgent = "com.covalenthq.sdk.typescript/0.6.
|
|
5870
|
+
const userAgent = "com.covalenthq.sdk.typescript/0.6.1";
|
|
5856
5871
|
/**
|
|
5857
5872
|
* CovalentClient Class
|
|
5858
5873
|
*/
|