@xoxno/types 1.0.386 → 1.0.388
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/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +7 -0
- package/dist/entities/auth/stellar-challenge.dto.d.ts +14 -0
- package/dist/entities/auth/stellar-challenge.dto.js +42 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ export declare class LendingAccountProfileDoc {
|
|
|
31
31
|
_ts: number;
|
|
32
32
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
33
33
|
}
|
|
34
|
-
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "address", "flashLoan", "oracleProvider", "indexes"];
|
|
34
|
+
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "address", "flashLoan", "oracleProvider", "indexes", "chain"];
|
|
35
35
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
36
36
|
supplyAmount: string;
|
|
37
37
|
borrowAmount: string;
|
|
@@ -240,6 +240,13 @@ const selectFields = [
|
|
|
240
240
|
'flashLoan',
|
|
241
241
|
'oracleProvider',
|
|
242
242
|
'indexes',
|
|
243
|
+
// `chain` must be in the projection so manage-flow chain resolution
|
|
244
|
+
// (resolveLendingManageChain in xoxno-ui) can tell a Stellar position
|
|
245
|
+
// from an MVX one. Without it, every position's marketProfile.chain is
|
|
246
|
+
// stripped by PickType serialization, normalizeLendingChain defaults
|
|
247
|
+
// to MVX, and Stellar users get the "Switch your Wallet" modal on
|
|
248
|
+
// Remove / Withdraw / Repay / Borrow / Swap / Liquidate.
|
|
249
|
+
'chain',
|
|
243
250
|
];
|
|
244
251
|
class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
245
252
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SEP-10 Web Authentication challenge response.
|
|
3
|
+
*
|
|
4
|
+
* The server returns an unsigned (server-signed only) Stellar transaction
|
|
5
|
+
* envelope that the client must countersign with the user's secret key.
|
|
6
|
+
* The countersigned XDR is then sent back via POST /user/login as
|
|
7
|
+
* `data.signedXdr` for verification.
|
|
8
|
+
*
|
|
9
|
+
* Spec: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md
|
|
10
|
+
*/
|
|
11
|
+
export declare class StellarChallengeResponseDto {
|
|
12
|
+
transaction: string;
|
|
13
|
+
networkPassphrase: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StellarChallengeResponseDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* SEP-10 Web Authentication challenge response.
|
|
17
|
+
*
|
|
18
|
+
* The server returns an unsigned (server-signed only) Stellar transaction
|
|
19
|
+
* envelope that the client must countersign with the user's secret key.
|
|
20
|
+
* The countersigned XDR is then sent back via POST /user/login as
|
|
21
|
+
* `data.signedXdr` for verification.
|
|
22
|
+
*
|
|
23
|
+
* Spec: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0010.md
|
|
24
|
+
*/
|
|
25
|
+
class StellarChallengeResponseDto {
|
|
26
|
+
}
|
|
27
|
+
exports.StellarChallengeResponseDto = StellarChallengeResponseDto;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Base64-encoded Stellar transaction envelope XDR, server-signed',
|
|
31
|
+
}),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], StellarChallengeResponseDto.prototype, "transaction", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Stellar network passphrase this challenge is valid on (client must match)',
|
|
38
|
+
example: 'Test SDF Network ; September 2015',
|
|
39
|
+
}),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], StellarChallengeResponseDto.prototype, "networkPassphrase", void 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -119,6 +119,7 @@ export * from './cosmos-db/documents/user/user-settings.doc';
|
|
|
119
119
|
export * from './cosmos-db/paginated-responses';
|
|
120
120
|
export * from './entities/airdrop/airdrop.dto';
|
|
121
121
|
export * from './entities/auth/login-request.dto';
|
|
122
|
+
export * from './entities/auth/stellar-challenge.dto';
|
|
122
123
|
export * from './entities/bober-battle/game-type';
|
|
123
124
|
export * from './entities/delegation-data/delegation-data-output';
|
|
124
125
|
export * from './entities/delegation-data/provider-data';
|
package/dist/index.js
CHANGED
|
@@ -135,6 +135,7 @@ __exportStar(require("./cosmos-db/documents/user/user-settings.doc"), exports);
|
|
|
135
135
|
__exportStar(require("./cosmos-db/paginated-responses"), exports);
|
|
136
136
|
__exportStar(require("./entities/airdrop/airdrop.dto"), exports);
|
|
137
137
|
__exportStar(require("./entities/auth/login-request.dto"), exports);
|
|
138
|
+
__exportStar(require("./entities/auth/stellar-challenge.dto"), exports);
|
|
138
139
|
__exportStar(require("./entities/bober-battle/game-type"), exports);
|
|
139
140
|
__exportStar(require("./entities/delegation-data/delegation-data-output"), exports);
|
|
140
141
|
__exportStar(require("./entities/delegation-data/provider-data"), exports);
|