@chainflip/rpc 1.6.10 → 1.6.11

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/Client.cjs CHANGED
@@ -1,5 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); var _class;// src/Client.ts
2
2
  var _assertion = require('@chainflip/utils/assertion');
3
+
4
+
5
+
3
6
  var _commoncjs = require('./common.cjs');
4
7
  var Client = (_class = class {
5
8
  constructor(url) {;_class.prototype.__init.call(this);
package/dist/Client.mjs CHANGED
@@ -1,6 +1,9 @@
1
1
  // src/Client.ts
2
2
  import { assert } from "@chainflip/utils/assertion";
3
- import { rpcResult, rpcResponse } from "./common.mjs";
3
+ import {
4
+ rpcResult,
5
+ rpcResponse
6
+ } from "./common.mjs";
4
7
  var Client = class {
5
8
  constructor(url) {
6
9
  this.url = url;
package/dist/WsClient.cjs CHANGED
@@ -85,7 +85,7 @@ var WsClient = (_class = class extends _Clientcjs2.default {
85
85
  () => ({ success: false, retry: false, error: new Error("timeout") })
86
86
  ),
87
87
  request.promise.then(
88
- (result2) => ({ success: true, result: result2 }),
88
+ (r) => ({ success: true, result: r }),
89
89
  (error) => ({ success: false, error, retry: true })
90
90
  )
91
91
  ]).finally(() => {
package/dist/WsClient.mjs CHANGED
@@ -85,7 +85,7 @@ var WsClient = class extends Client {
85
85
  () => ({ success: false, retry: false, error: new Error("timeout") })
86
86
  ),
87
87
  request.promise.then(
88
- (result2) => ({ success: true, result: result2 }),
88
+ (r) => ({ success: true, result: r }),
89
89
  (error) => ({ success: false, error, retry: true })
90
90
  )
91
91
  ]).finally(() => {
package/dist/common.cjs CHANGED
@@ -18,6 +18,7 @@
18
18
 
19
19
 
20
20
 
21
+
21
22
 
22
23
 
23
24
  var _parserscjs = require('./parsers.cjs');
@@ -37,6 +38,7 @@ var rpcResult = {
37
38
  cf_supported_assets: _parserscjs.cfSupportedAssets,
38
39
  cf_swap_rate: _parserscjs.cfSwapRate,
39
40
  cf_swap_rate_v2: _parserscjs.cfSwapRateV2,
41
+ cf_swap_rate_v3: _parserscjs.cfSwapRateV3,
40
42
  cf_swapping_environment: _parserscjs.cfSwappingEnvironment,
41
43
  chain_getBlockHash: _parserscjs.chainGetBlockHash,
42
44
  cf_boost_pool_details: _parserscjs.cfBoostPoolDetails,