@xoxno/types 1.0.360 → 1.0.362
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/user/user-profile.doc.d.ts +1 -0
- package/dist/cosmos-db/documents/user/user-profile.doc.js +6 -0
- package/dist/entities/passkey/create.d.ts +3 -1
- package/dist/entities/passkey/create.js +8 -5
- package/dist/entities/perp/transfer.d.ts +2 -0
- package/dist/entities/perp/transfer.js +5 -0
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ class UserProfileDoc {
|
|
|
33
33
|
this.isCreator = false;
|
|
34
34
|
this.isPoolOwner = false;
|
|
35
35
|
this.shard = 0;
|
|
36
|
+
this.nonce = 0;
|
|
36
37
|
this.userDeposit = [];
|
|
37
38
|
this.chain = common_enum_1.ActivityChain.MVX;
|
|
38
39
|
this._ts = 0;
|
|
@@ -137,6 +138,11 @@ __decorate([
|
|
|
137
138
|
(0, class_validator_1.IsInt)(),
|
|
138
139
|
__metadata("design:type", Number)
|
|
139
140
|
], UserProfileDoc.prototype, "shard", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, swagger_1.ApiProperty)({ example: 0, description: 'Perp Nonce' }),
|
|
143
|
+
(0, class_validator_1.IsInt)(),
|
|
144
|
+
__metadata("design:type", Number)
|
|
145
|
+
], UserProfileDoc.prototype, "nonce", void 0);
|
|
140
146
|
__decorate([
|
|
141
147
|
(0, swagger_1.ApiProperty)({
|
|
142
148
|
type: () => [user_deposit_1.UserDeposit],
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ContractSignatureType } from '../../enums/passkey.enum';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class ContractSignatureRequest {
|
|
3
3
|
type: ContractSignatureType;
|
|
4
4
|
signature: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class SignatureRequest extends ContractSignatureRequest {
|
|
5
7
|
message: string;
|
|
6
8
|
}
|
|
@@ -9,20 +9,23 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SignatureRequest = void 0;
|
|
12
|
+
exports.SignatureRequest = exports.ContractSignatureRequest = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const passkey_enum_1 = require("../../enums/passkey.enum");
|
|
15
|
-
class
|
|
15
|
+
class ContractSignatureRequest {
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
17
|
+
exports.ContractSignatureRequest = ContractSignatureRequest;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, swagger_1.ApiProperty)(),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
21
|
+
], ContractSignatureRequest.prototype, "type", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, swagger_1.ApiProperty)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], ContractSignatureRequest.prototype, "signature", void 0);
|
|
26
|
+
class SignatureRequest extends ContractSignatureRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.SignatureRequest = SignatureRequest;
|
|
26
29
|
__decorate([
|
|
27
30
|
(0, swagger_1.ApiProperty)(),
|
|
28
31
|
__metadata("design:type", String)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PerpOrderType, PerpTransferType, PerpWithdrawalChain } from '../../enums';
|
|
2
|
+
import { ContractSignatureRequest } from '../passkey/create';
|
|
2
3
|
export declare class PerpTransferTransfer {
|
|
3
4
|
type: PerpOrderType.SEND_ASSET;
|
|
4
5
|
destination: string;
|
|
@@ -9,4 +10,5 @@ export declare class PerpTransferTransfer {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class PerpTransfer {
|
|
11
12
|
action: PerpTransferTransfer;
|
|
13
|
+
signature: ContractSignatureRequest;
|
|
12
14
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.PerpTransfer = exports.PerpTransferTransfer = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const enums_1 = require("../../enums");
|
|
15
|
+
const create_1 = require("../passkey/create");
|
|
15
16
|
class PerpTransferTransfer {
|
|
16
17
|
}
|
|
17
18
|
exports.PerpTransferTransfer = PerpTransferTransfer;
|
|
@@ -46,3 +47,7 @@ __decorate([
|
|
|
46
47
|
(0, swagger_1.ApiProperty)(),
|
|
47
48
|
__metadata("design:type", PerpTransferTransfer)
|
|
48
49
|
], PerpTransfer.prototype, "action", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)(),
|
|
52
|
+
__metadata("design:type", create_1.ContractSignatureRequest)
|
|
53
|
+
], PerpTransfer.prototype, "signature", void 0);
|