@covalenthq/client-sdk 0.2.8 → 0.2.9
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/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/services/Client.d.ts +1 -1
- package/dist/services/Client.js +1 -1
- package/dist/util/types/GenericTypes.d.ts +14 -0
- package/dist/util/types/PricingServiceTypes.d.ts +1 -14
- package/dist/util/types/TransactionServiceTypes.d.ts +1 -15
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export * from "./util/types/BaseServiceTypes";
|
|
|
4
4
|
export * from "./util/types/NftServiceTypes";
|
|
5
5
|
export * from "./util/types/PricingServiceTypes";
|
|
6
6
|
export * from "./util/types/SecurityServiceTypes";
|
|
7
|
-
export * from "./util/types/
|
|
8
|
-
export * from "./util/types/SecurityServiceTypes";
|
|
7
|
+
export * from "./util/types/XykServiceTypes";
|
|
9
8
|
export * from "./util/types/GenericTypes";
|
|
9
|
+
export * from "./util/types/TransactionServiceTypes";
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ __exportStar(require("./util/types/BaseServiceTypes"), exports);
|
|
|
22
22
|
__exportStar(require("./util/types/NftServiceTypes"), exports);
|
|
23
23
|
__exportStar(require("./util/types/PricingServiceTypes"), exports);
|
|
24
24
|
__exportStar(require("./util/types/SecurityServiceTypes"), exports);
|
|
25
|
-
__exportStar(require("./util/types/
|
|
26
|
-
__exportStar(require("./util/types/SecurityServiceTypes"), exports);
|
|
25
|
+
__exportStar(require("./util/types/XykServiceTypes"), exports);
|
|
27
26
|
__exportStar(require("./util/types/GenericTypes"), exports);
|
|
27
|
+
__exportStar(require("./util/types/TransactionServiceTypes"), exports);
|
|
28
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,mEAAiD;AACjD,gEAA8C;AAC9C,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAkD;AAClD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAAlC,gGAAA,MAAM,OAAA;AACf,mEAAiD;AACjD,gEAA8C;AAC9C,+DAA6C;AAC7C,mEAAiD;AACjD,oEAAkD;AAClD,+DAA6C;AAC7C,4DAA0C;AAC1C,uEAAqD"}
|
|
@@ -7,7 +7,7 @@ import { TransactionService } from "./TransactionService";
|
|
|
7
7
|
import { XykService } from "./XykService";
|
|
8
8
|
export type Chains = "btc-mainnet" | "eth-mainnet" | "matic-mainnet" | "bsc-mainnet" | "avalanche-mainnet" | "optimism-mainnet" | "fantom-mainnet" | "moonbeam-mainnet" | "moonbeam-moonriver" | "rsk-mainnet" | "arbitrum-mainnet" | "palm-mainnet" | "klaytn-mainnet" | "heco-mainnet" | "nervos-godwoken-mainnet" | "axie-mainnet" | "evmos-mainnet" | "astar-mainnet" | "iotex-mainnet" | "harmony-mainnet" | "cronos-mainnet" | "aurora-mainnet" | "emerald-paratime-mainnet" | "boba-mainnet" | "eth-goerli" | "matic-mumbai" | "avalanche-testnet" | "bsc-testnet" | "moonbeam-moonbase-alpha" | "rsk-testnet" | "arbitrum-goerli" | "fantom-testnet" | "palm-testnet" | "heco-testnet" | "nervos-godwoken-testnet" | "evmos-testnet" | "astar-shiden" | "iotex-testnet" | "harmony-testnet" | "aurora-testnet" | "scroll-sepolia-testnet" | "covalent-internal-network-v1" | "defi-kingdoms-mainnet" | "swimmer-mainnet" | "boba-avalanche-mainnet" | "boba-bobabeam-mainnet" | "boba-bnb-mainnet" | "boba-rinkeby-testnet" | "boba-bobabase-testnet" | "boba-bnb-testnet" | "boba-avalanche-testnet" | "klaytn-testnet" | "gather-mainnet" | "gather-testnet" | "skale-calypso" | "skale-mainnet" | "skale-razor" | "avalanche-dexalot-mainnet" | "skale-omnus" | "avalanche-dexalot-testnet" | "astar-shibuya" | "cronos-testnet" | "defi-kingdoms-testnet" | "metis-mainnet" | "metis-stardust" | "milkomeda-a1-mainnet" | "milkomeda-a1-devnet" | "milkomeda-c1-mainnet" | "milkomeda-c1-devnet" | "swimmer-testnet" | "solana-mainnet" | "skale-europa" | "meter-mainnet" | "meter-testnet" | "skale-exorde" | "boba-goerli" | "neon-testnet" | "skale-staging-uum" | "skale-staging-lcc" | "arbitrum-nova-mainnet" | "canto-mainnet" | "bittorrent-mainnet" | "bittorrent-testnet" | "flarenetworks-flare-mainnet" | "flarenetworks-flare-testnet" | "flarenetworks-canary-mainnet" | "flarenetworks-canary-testnet" | "kcc-mainnet" | "kcc-testnet" | "polygon-zkevm-testnet" | "linea-testnet" | "base-testnet" | "mantle-testnet" | "scroll-alpha-testnet" | "oasys-mainnet" | "oasys-testnet" | "findora-mainnet" | "findora-forge-testnet" | "sx-mainnet" | "oasis-sapphire-mainnet" | "oasis-sapphire-testnet" | "optimism-goerli" | "polygon-zkevm-mainnet" | "horizen-yuma-testnet" | "clv-parachain" | "energi-mainnet" | "energi-testnet" | "horizen-gobi-testnet" | "eth-sepolia" | "skale-nebula" | "skale-battleground" | "avalanche-meld-testnet" | "gunzilla-testnet" | "ultron-mainnet" | "ultron-testnet" | "zora-mainnet" | "zora-testnet" | "neon-mainnet" | "avalanche-shrapnel-mainnet" | "base-mainnet" | "mantle-mainnet" | "avalanche-loco-legends-mainnet" | "linea-mainnet" | "horizen-eon-mainnet" | "avalanche-numbers" | "avalanche-dos" | "avalanche-step-network" | "avalanche-xplus" | "avalanche-xanachain" | "avalanche-meld-mainnet" | "opside-public-zkevm" | "opside-law-chain" | "avalanche-shrapnel-testnet" | "avalanche-loco-legends-testnet" | "opside-cb-zkevm" | "opside-pre-alpha-testnet" | "opside-era7" | "opside-xthrill" | "zksync-mainnet" | "metis-testnet" | "zksync-testnet" | "avalanche-blitz-testnet" | "avalanche-d-chain-testnet" | "avalanche-green-dot-testnet" | "avalanche-mintara-testnet" | "avalanche-beam-testnet" | "bnb-meta-apes-mainnet" | "bnb-antimatter-mainnet" | "bnb-antimatter-testnet" | "bnb-opbnb-testnet" | "opside-debox" | "opside-jackbot" | "opside-odx-zkevm-testnet" | "opside-readon-content-testnet" | "opside-relation" | "opside-soquest-zkevm" | "opside-vip3" | "opside-zkmeta" | "avalanche-pulsar-testnet" | "avalanche-uptn" | "bnb-fncy-mainnet" | "zetachain-testnet" | "kinto-testnet" | "mode-testnet" | "loot-mainnet";
|
|
9
9
|
export type Quotes = "USD" | "CAD" | "EUR" | "SGD" | "INR" | "JPY" | "VND" | "CNY" | "KRW" | "RUB" | "TRY" | "NGN" | "ARS" | "AUD" | "CHF" | "GBP";
|
|
10
|
-
export declare const userAgent = "com.covalenthq.sdk.typescript/0.2.
|
|
10
|
+
export declare const userAgent = "com.covalenthq.sdk.typescript/0.2.9";
|
|
11
11
|
export declare class Response<T> {
|
|
12
12
|
data: T;
|
|
13
13
|
error: boolean;
|
package/dist/services/Client.js
CHANGED
|
@@ -8,7 +8,7 @@ const NftService_1 = require("./NftService");
|
|
|
8
8
|
const PricingService_1 = require("./PricingService");
|
|
9
9
|
const TransactionService_1 = require("./TransactionService");
|
|
10
10
|
const XykService_1 = require("./XykService");
|
|
11
|
-
exports.userAgent = "com.covalenthq.sdk.typescript/0.2.
|
|
11
|
+
exports.userAgent = "com.covalenthq.sdk.typescript/0.2.9";
|
|
12
12
|
class Response {
|
|
13
13
|
}
|
|
14
14
|
exports.Response = Response;
|
|
@@ -73,3 +73,17 @@ export interface LogEvent {
|
|
|
73
73
|
raw_log_data: string;
|
|
74
74
|
decoded: DecodedItem;
|
|
75
75
|
}
|
|
76
|
+
export interface ContractMetadata {
|
|
77
|
+
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
78
|
+
contract_decimals: number;
|
|
79
|
+
/** * The string returned by the `name()` method. */
|
|
80
|
+
contract_name: string;
|
|
81
|
+
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
82
|
+
contract_ticker_symbol: string;
|
|
83
|
+
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
84
|
+
contract_address: string;
|
|
85
|
+
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
86
|
+
supports_erc: string;
|
|
87
|
+
/** * The contract logo URL. */
|
|
88
|
+
logo_url: string;
|
|
89
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ContractMetadata } from "./GenericTypes";
|
|
1
2
|
export interface TokenPricesResponse {
|
|
2
3
|
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
3
4
|
contract_decimals: number;
|
|
@@ -28,17 +29,3 @@ export interface Price {
|
|
|
28
29
|
/** * A prettier version of the price for rendering purposes. */
|
|
29
30
|
pretty_price: string;
|
|
30
31
|
}
|
|
31
|
-
export interface ContractMetadata {
|
|
32
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
33
|
-
contract_decimals: number;
|
|
34
|
-
/** * The string returned by the `name()` method. */
|
|
35
|
-
contract_name: string;
|
|
36
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
37
|
-
contract_ticker_symbol: string;
|
|
38
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
39
|
-
contract_address: string;
|
|
40
|
-
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
41
|
-
supports_erc: string;
|
|
42
|
-
/** * The contract logo URL. */
|
|
43
|
-
logo_url: string;
|
|
44
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogEvent } from "./GenericTypes";
|
|
1
|
+
import { ContractMetadata, LogEvent } from "./GenericTypes";
|
|
2
2
|
export interface TransactionResponse {
|
|
3
3
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
4
4
|
updated_at: Date;
|
|
@@ -51,20 +51,6 @@ export interface Transaction {
|
|
|
51
51
|
lending_details: LendingReport;
|
|
52
52
|
log_events: LogEvent[];
|
|
53
53
|
}
|
|
54
|
-
export interface ContractMetadata {
|
|
55
|
-
/** * Use contract decimals to format the token balance for display purposes - divide the balance by `10^{contract_decimals}`. */
|
|
56
|
-
contract_decimals: number;
|
|
57
|
-
/** * The string returned by the `name()` method. */
|
|
58
|
-
contract_name: string;
|
|
59
|
-
/** * The ticker symbol for this contract. This field is set by a developer and non-unique across a network. */
|
|
60
|
-
contract_ticker_symbol: string;
|
|
61
|
-
/** * Use the relevant `contract_address` to lookup prices, logos, token transfers, etc. */
|
|
62
|
-
contract_address: string;
|
|
63
|
-
/** * A list of supported standard ERC interfaces, eg: `ERC20` and `ERC721`. */
|
|
64
|
-
supports_erc: string;
|
|
65
|
-
/** * The contract logo URL. */
|
|
66
|
-
logo_url: string;
|
|
67
|
-
}
|
|
68
54
|
export interface DexReport {
|
|
69
55
|
log_offset: number;
|
|
70
56
|
/** * Stores the name of the protocol that facilitated the event. */
|