carbon-js-sdk 0.11.40-beta.2 → 0.11.40
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NetworkConfig } from "../constant";
|
|
2
2
|
import { Insights } from "../index";
|
|
3
|
-
import { ConnectedWalletParams, ConnectedWalletResponse, InsightsQueryResponse } from "../insights";
|
|
3
|
+
import { ConnectedWalletParams, ConnectedWalletResponse, CrossChainVolume, InsightsQueryResponse } from "../insights";
|
|
4
4
|
import { APIUtils } from "../util";
|
|
5
5
|
declare class InsightsQueryClient {
|
|
6
6
|
readonly apiManager: APIUtils.APIManager<typeof Insights.InsightsEndpoints>;
|
|
@@ -66,5 +66,6 @@ declare class InsightsQueryClient {
|
|
|
66
66
|
OraclePrices(req?: Insights.QueryGetOraclesPriceRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetOraclesPriceResponse>>;
|
|
67
67
|
AlliancesStake(req?: Insights.QueryGetAlliancesStakeRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetAlliancesStakeResponse>>;
|
|
68
68
|
AlliancesRewards(req?: Insights.QueryGetAlliancesRewardsRequest): Promise<Insights.InsightsQueryResponse<Insights.QueryGetAlliancesRewardsResponse>>;
|
|
69
|
+
CrosschainVolumes(req?: Insights.QueryCrosschainVolumeRequest): Promise<Insights.InsightsQueryResponse<CrossChainVolume[]>>;
|
|
69
70
|
}
|
|
70
71
|
export default InsightsQueryClient;
|
|
@@ -549,5 +549,12 @@ class InsightsQueryClient {
|
|
|
549
549
|
return response.data;
|
|
550
550
|
});
|
|
551
551
|
}
|
|
552
|
+
CrosschainVolumes(req = {}) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
554
|
+
const request = this.apiManager.path("crosschain/volume", {}, req);
|
|
555
|
+
const response = yield request.get();
|
|
556
|
+
return response.data;
|
|
557
|
+
});
|
|
558
|
+
}
|
|
552
559
|
}
|
|
553
560
|
exports.default = InsightsQueryClient;
|
package/lib/insights/common.d.ts
CHANGED
package/lib/insights/common.js
CHANGED
|
@@ -68,6 +68,8 @@ exports.InsightsEndpoints = {
|
|
|
68
68
|
// Alliances api
|
|
69
69
|
"alliances/stake": "/alliances/stake",
|
|
70
70
|
"alliances/rewards": "/alliances/rewards",
|
|
71
|
+
// Crosschain api
|
|
72
|
+
"crosschain/volume": "/crosschain/volume",
|
|
71
73
|
"reward/epoch": "/reward/epoch/:epoch/:unixStart",
|
|
72
74
|
"reward/leaderboard": "/reward/:unixStart/:unixEnd/leaderboard",
|
|
73
75
|
};
|
package/lib/insights/index.d.ts
CHANGED
package/lib/insights/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./balance"), exports);
|
|
14
14
|
__exportStar(require("./common"), exports);
|
|
15
|
+
__exportStar(require("./crosschain"), exports);
|
|
15
16
|
__exportStar(require("./node"), exports);
|
|
16
17
|
__exportStar(require("./pool"), exports);
|
|
17
18
|
__exportStar(require("./position"), exports);
|