@spritz-finance/service-client 0.3.67 → 0.3.69
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/lib/features/types.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare enum FeatureFlag {
|
|
|
32
32
|
BankAccountPayments = "payments.accountType.bankAccount",
|
|
33
33
|
RtpPayments = "payments.accountType.rtp",
|
|
34
34
|
SuiMUSDPayments = "payments.token.sui.musd",
|
|
35
|
+
BridgeWalletPayments = "bridge.wallet.payments",
|
|
35
36
|
SpritzCardNoKycEnabled = "spritzCard.noKyc.enabled",
|
|
36
37
|
SpritzCardNoKycPayments = "spritzCard.noKyc.payments",
|
|
37
38
|
BinanceBridgeEnabled = "binanceBridge.enabled",
|
package/lib/features/types.js
CHANGED
|
@@ -31,6 +31,7 @@ var FeatureFlag;
|
|
|
31
31
|
// Token Specific
|
|
32
32
|
FeatureFlag["SuiMUSDPayments"] = "payments.token.sui.musd";
|
|
33
33
|
// Features
|
|
34
|
+
FeatureFlag["BridgeWalletPayments"] = "bridge.wallet.payments";
|
|
34
35
|
FeatureFlag["SpritzCardNoKycEnabled"] = "spritzCard.noKyc.enabled";
|
|
35
36
|
FeatureFlag["SpritzCardNoKycPayments"] = "spritzCard.noKyc.payments";
|
|
36
37
|
// Operations
|
|
@@ -6,3 +6,6 @@ export declare function getUserOpsSigner(input: {
|
|
|
6
6
|
userId: string;
|
|
7
7
|
signerType: OpsSignerType;
|
|
8
8
|
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<UserOpsSigner>>;
|
|
9
|
+
export declare function createUserOpsSigner(input: {
|
|
10
|
+
userId: string;
|
|
11
|
+
}): Promise<import("../types").ApiFailure | import("../types").ApiSuccess<boolean>>;
|
|
@@ -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.getUserOpsSigner = exports.getTokenBalances = exports.getExactInQuote = exports.Web3Client = void 0;
|
|
26
|
+
exports.createUserOpsSigner = exports.getUserOpsSigner = exports.getTokenBalances = exports.getExactInQuote = exports.Web3Client = void 0;
|
|
27
27
|
exports.Web3Client = __importStar(require("./web3ServiceClient"));
|
|
28
28
|
const serviceClient_1 = require("../serviceClient");
|
|
29
29
|
const WEB3_ENDPOINT = '/web3';
|
|
@@ -45,3 +45,9 @@ async function getUserOpsSigner(input) {
|
|
|
45
45
|
.then((res) => res.data);
|
|
46
46
|
}
|
|
47
47
|
exports.getUserOpsSigner = getUserOpsSigner;
|
|
48
|
+
async function createUserOpsSigner(input) {
|
|
49
|
+
return serviceClient_1.baseClient
|
|
50
|
+
.post(`${WEB3_ENDPOINT}/ops-signer/user/${input.userId}`)
|
|
51
|
+
.then((res) => res.data);
|
|
52
|
+
}
|
|
53
|
+
exports.createUserOpsSigner = createUserOpsSigner;
|