@xoxno/types 1.0.361 → 1.0.363
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.
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { ContractSignatureType } from '../../enums/passkey.enum';
|
|
2
|
-
export
|
|
3
|
-
type: ContractSignatureType;
|
|
2
|
+
export type ContractSignatureRequestPasskey = {
|
|
3
|
+
type: ContractSignatureType.PASSKEY;
|
|
4
4
|
signature: string;
|
|
5
|
+
authenticatorData: string;
|
|
6
|
+
};
|
|
7
|
+
export type ContractSignatureRequestWallet = {
|
|
8
|
+
type: ContractSignatureType.EVM | ContractSignatureType.MVX | ContractSignatureType.SOL;
|
|
9
|
+
signature: string;
|
|
10
|
+
};
|
|
11
|
+
export type ContractSignatureRequest = ContractSignatureRequestPasskey | ContractSignatureRequestWallet;
|
|
12
|
+
export type SignatureRequestWallet = ContractSignatureRequestWallet & {
|
|
5
13
|
message: string;
|
|
6
|
-
}
|
|
14
|
+
};
|
|
@@ -1,29 +1,2 @@
|
|
|
1
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
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SignatureRequest = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const passkey_enum_1 = require("../../enums/passkey.enum");
|
|
15
|
-
class SignatureRequest {
|
|
16
|
-
}
|
|
17
|
-
exports.SignatureRequest = SignatureRequest;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, swagger_1.ApiProperty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], SignatureRequest.prototype, "type", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, swagger_1.ApiProperty)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], SignatureRequest.prototype, "signature", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, swagger_1.ApiProperty)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], SignatureRequest.prototype, "message", void 0);
|
|
@@ -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
|
}
|
|
@@ -46,3 +46,7 @@ __decorate([
|
|
|
46
46
|
(0, swagger_1.ApiProperty)(),
|
|
47
47
|
__metadata("design:type", PerpTransferTransfer)
|
|
48
48
|
], PerpTransfer.prototype, "action", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], PerpTransfer.prototype, "signature", void 0);
|