@xoxno/types 1.0.384 → 1.0.387
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-emode-category-profile.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +1 -1
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +1 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.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
|
@@ -14,12 +14,12 @@ export declare class LendingEModeCategoryProfileDoc {
|
|
|
14
14
|
chain: ActivityChain;
|
|
15
15
|
constructor(props?: Partial<LendingEModeCategoryProfileDoc>);
|
|
16
16
|
}
|
|
17
|
-
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">;
|
|
17
|
+
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">;
|
|
18
18
|
export declare type ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc_base ;
|
|
19
|
-
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">>;
|
|
19
|
+
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">>;
|
|
20
20
|
export declare class ShortLendingTokenEModeProfileDocNest extends ShortLendingTokenEModeProfileDocNest_base {
|
|
21
21
|
}
|
|
22
22
|
export declare class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
23
|
-
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory'>[];
|
|
23
|
+
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'name' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory'>[];
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -81,7 +81,7 @@ __decorate([
|
|
|
81
81
|
}),
|
|
82
82
|
__metadata("design:type", String)
|
|
83
83
|
], LendingEModeCategoryProfileDoc.prototype, "chain", void 0);
|
|
84
|
-
class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_token_emode_profile_doc_1.LendingTokenEModeProfileDoc, ['token', 'canBeBorrowed', 'canBeCollateral', 'eModeCategory']) {
|
|
84
|
+
class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_token_emode_profile_doc_1.LendingTokenEModeProfileDoc, ['token', 'name', 'canBeBorrowed', 'canBeCollateral', 'eModeCategory']) {
|
|
85
85
|
}
|
|
86
86
|
exports.ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc;
|
|
87
87
|
class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
@@ -40,6 +40,13 @@ __decorate([
|
|
|
40
40
|
}),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], LendingTokenEModeProfileDoc.prototype, "token", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({
|
|
45
|
+
description: 'Human-readable ticker of the token (e.g. "USDC", "EURC", "XLM", "EGLD"). Derived from the market profile name (MVX identifier symbol, Stellar hydrated ticker, Sui coin symbol). Falls back to the raw token identifier when no hydrated name is available.',
|
|
46
|
+
example: 'EGLD',
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], LendingTokenEModeProfileDoc.prototype, "name", void 0);
|
|
43
50
|
__decorate([
|
|
44
51
|
(0, swagger_1.ApiProperty)({
|
|
45
52
|
description: 'Indicates if the token can be used as collateral',
|
|
@@ -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);
|