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;
@@ -52,6 +52,7 @@ export declare const InsightsEndpoints: {
52
52
  "info/oracles_price": string;
53
53
  "alliances/stake": string;
54
54
  "alliances/rewards": string;
55
+ "crosschain/volume": string;
55
56
  "reward/epoch": string;
56
57
  "reward/leaderboard": string;
57
58
  };
@@ -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
  };
@@ -1,5 +1,6 @@
1
1
  export * from "./balance";
2
2
  export * from "./common";
3
+ export * from "./crosschain";
3
4
  export * from "./node";
4
5
  export * from "./pool";
5
6
  export * from "./position";
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-js-sdk",
3
- "version": "0.11.40-beta.2",
3
+ "version": "0.11.40",
4
4
  "description": "TypeScript SDK for Carbon blockchain",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",