@spritz-finance/service-client 0.3.99 → 0.3.100

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.
@@ -5,3 +5,15 @@ export declare function getPayoutFromHash({ userId, transactionHash, }: {
5
5
  userId?: string;
6
6
  transactionHash: string;
7
7
  }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<CryptoPayout>>;
8
+ export declare function requestWithdrawlSignature(input: {
9
+ userId: string;
10
+ tokenAddress: `0x${string}`;
11
+ amount: string;
12
+ recipientAddress: `0x${string}`;
13
+ nonce: string;
14
+ collateralProxyAddress: `0x${string}`;
15
+ chainId: number;
16
+ }): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<{
17
+ signature: `0x${string}`;
18
+ salt: `0x${string}`;
19
+ }>>;
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getPayoutFromHash = exports.requestCryptoPayout = exports.PayoutsClient = void 0;
26
+ exports.requestWithdrawlSignature = exports.getPayoutFromHash = exports.requestCryptoPayout = exports.PayoutsClient = void 0;
27
27
  exports.PayoutsClient = __importStar(require("./payoutsServiceClient"));
28
28
  const serviceClient_1 = require("../serviceClient");
29
29
  const PAYOUTS_ENDPOINT = '/bridgebot';
@@ -51,3 +51,9 @@ async function getPayoutFromHash({ userId, transactionHash, }) {
51
51
  .then((res) => res.data);
52
52
  }
53
53
  exports.getPayoutFromHash = getPayoutFromHash;
54
+ async function requestWithdrawlSignature(input) {
55
+ return serviceClient_1.baseClient
56
+ .post(`${PAYOUTS_ENDPOINT}/signers/collateral-withdrawl`, input)
57
+ .then((res) => res.data);
58
+ }
59
+ exports.requestWithdrawlSignature = requestWithdrawlSignature;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.3.99",
3
+ "version": "0.3.100",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",