@spritz-finance/service-client 0.8.0 → 0.8.2

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,15 +1,17 @@
1
1
  export * as CheckbookClient from "./checkbookServiceClient";
2
2
  import { RunBatchConfig } from "./types";
3
+ export type CheckbookBatchBalances = {
4
+ totalBatchBalance: number;
5
+ instantBatchBalance: number;
6
+ achBatchBalance: number;
7
+ rtpBatchBalance: number;
8
+ delayedRtpBatchBalance: number;
9
+ };
3
10
  export declare function triggerBatch({ config, configs, reserve, currency, }: {
4
11
  config?: RunBatchConfig;
5
12
  configs?: RunBatchConfig[];
6
13
  reserve?: number;
7
14
  currency: string;
8
15
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<boolean>>;
9
- export declare function getBatchBalances(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
10
- totalBatchBalance: number;
11
- instantBatchBalance: number;
12
- achBatchBalance: number;
13
- rtpBatchBalance: number;
14
- delayedRtpBatchBalance: number;
15
- }>>;
16
+ export declare function getBatchBalances(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CheckbookBatchBalances>>;
17
+ export declare function getFundingBatchBalances(): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CheckbookBatchBalances>>;
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.CheckbookClient = void 0;
37
37
  exports.triggerBatch = triggerBatch;
38
38
  exports.getBatchBalances = getBatchBalances;
39
+ exports.getFundingBatchBalances = getFundingBatchBalances;
39
40
  exports.CheckbookClient = __importStar(require("./checkbookServiceClient"));
40
41
  const serviceClient_1 = require("../serviceClient");
41
42
  const CHECKBOOK_ENDPOINT = "/liabilities";
@@ -54,3 +55,8 @@ async function getBatchBalances() {
54
55
  .get(`${CHECKBOOK_ENDPOINT}/checkbook/batch/balances`)
55
56
  .then((res) => res.data);
56
57
  }
58
+ async function getFundingBatchBalances() {
59
+ return serviceClient_1.baseClient
60
+ .get(`${CHECKBOOK_ENDPOINT}/checkbook/batch/funding-balances`)
61
+ .then((res) => res.data);
62
+ }
@@ -47,7 +47,8 @@ export type Portfolio = {
47
47
  };
48
48
  export declare enum SignerUsageType {
49
49
  BRIDGE_TRANSFER = 0,
50
- RAIN_TRANSFER = 1
50
+ RAIN_TRANSFER = 1,
51
+ ONRAMP_PURCHASE = 2
51
52
  }
52
53
  export declare enum OpsSignerType {
53
54
  Evm = "ADDRESS_FORMAT_ETHEREUM",
package/lib/web3/types.js CHANGED
@@ -5,6 +5,7 @@ var SignerUsageType;
5
5
  (function (SignerUsageType) {
6
6
  SignerUsageType[SignerUsageType["BRIDGE_TRANSFER"] = 0] = "BRIDGE_TRANSFER";
7
7
  SignerUsageType[SignerUsageType["RAIN_TRANSFER"] = 1] = "RAIN_TRANSFER";
8
+ SignerUsageType[SignerUsageType["ONRAMP_PURCHASE"] = 2] = "ONRAMP_PURCHASE";
8
9
  })(SignerUsageType || (exports.SignerUsageType = SignerUsageType = {}));
9
10
  var OpsSignerType;
10
11
  (function (OpsSignerType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "gitHead": "06f8e96b7b38c34df26a38da329331940675e4f8",
5
5
  "description": "Service client",
6
6
  "license": "ISC",