@explorins/pers-shared 2.1.18 → 2.1.20
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/cjs/shared-lib/dto/signing-account/activate-signing-account.dto.d.ts +1 -6
- package/dist/cjs/shared-lib/dto/signing-account/activate-signing-account.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/activate-signing-account.dto.js +23 -44
- package/dist/cjs/shared-lib/dto/signing-account/activate-signing-account.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/index.d.ts +0 -2
- package/dist/cjs/shared-lib/dto/signing-account/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/index.js +2 -2
- package/dist/cjs/shared-lib/dto/signing-account/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/signing-account.dto.d.ts +1 -7
- package/dist/cjs/shared-lib/dto/signing-account/signing-account.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/signing-account.dto.js +27 -30
- package/dist/cjs/shared-lib/dto/signing-account/signing-account.dto.js.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/index.d.ts +1 -0
- package/dist/cjs/shared-lib/dto/transaction/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/index.js +1 -0
- package/dist/cjs/shared-lib/dto/transaction/index.js.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction-request-actionable.dto.d.ts +13 -0
- package/dist/cjs/shared-lib/dto/transaction/transaction-request-actionable.dto.d.ts.map +1 -0
- package/dist/cjs/shared-lib/dto/transaction/transaction-request-actionable.dto.js +53 -0
- package/dist/cjs/shared-lib/dto/transaction/transaction-request-actionable.dto.js.map +1 -0
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.d.ts +9 -3
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.d.ts.map +1 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.js +43 -1
- package/dist/cjs/shared-lib/dto/transaction/transaction.request.dto.js.map +1 -1
- package/dist/cjs/shared-lib/interfaces/counterfactual-wallet-response.interface.d.ts +32 -0
- package/dist/cjs/shared-lib/interfaces/counterfactual-wallet-response.interface.d.ts.map +1 -0
- package/dist/cjs/shared-lib/interfaces/counterfactual-wallet-response.interface.js +10 -0
- package/dist/cjs/shared-lib/interfaces/counterfactual-wallet-response.interface.js.map +1 -0
- package/dist/cjs/shared-lib/interfaces/index.d.ts +1 -0
- package/dist/cjs/shared-lib/interfaces/index.d.ts.map +1 -1
- package/dist/cjs/shared-lib/interfaces/index.js +1 -0
- package/dist/cjs/shared-lib/interfaces/index.js.map +1 -1
- package/dist/cjs/shared-lib/interfaces/wallet-signing-scenario.interface.d.ts +7 -23
- package/dist/cjs/shared-lib/interfaces/wallet-signing-scenario.interface.d.ts.map +1 -1
- package/dist/cjs/shared-lib/interfaces/wallet-signing-scenario.interface.js +41 -3
- package/dist/cjs/shared-lib/interfaces/wallet-signing-scenario.interface.js.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/activate-signing-account.dto.d.ts +1 -6
- package/dist/esm/shared-lib/dto/signing-account/activate-signing-account.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/activate-signing-account.dto.js +24 -36
- package/dist/esm/shared-lib/dto/signing-account/activate-signing-account.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/index.d.ts +0 -2
- package/dist/esm/shared-lib/dto/signing-account/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/index.js +2 -2
- package/dist/esm/shared-lib/dto/signing-account/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.d.ts +1 -7
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.js +23 -21
- package/dist/esm/shared-lib/dto/signing-account/signing-account.dto.js.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/index.d.ts +1 -0
- package/dist/esm/shared-lib/dto/transaction/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/index.js +1 -0
- package/dist/esm/shared-lib/dto/transaction/index.js.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction-request-actionable.dto.d.ts +13 -0
- package/dist/esm/shared-lib/dto/transaction/transaction-request-actionable.dto.d.ts.map +1 -0
- package/dist/esm/shared-lib/dto/transaction/transaction-request-actionable.dto.js +42 -0
- package/dist/esm/shared-lib/dto/transaction/transaction-request-actionable.dto.js.map +1 -0
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.d.ts +9 -3
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.d.ts.map +1 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js +40 -1
- package/dist/esm/shared-lib/dto/transaction/transaction.request.dto.js.map +1 -1
- package/dist/esm/shared-lib/interfaces/counterfactual-wallet-response.interface.d.ts +32 -0
- package/dist/esm/shared-lib/interfaces/counterfactual-wallet-response.interface.d.ts.map +1 -0
- package/dist/esm/shared-lib/interfaces/counterfactual-wallet-response.interface.js +9 -0
- package/dist/esm/shared-lib/interfaces/counterfactual-wallet-response.interface.js.map +1 -0
- package/dist/esm/shared-lib/interfaces/index.d.ts +1 -0
- package/dist/esm/shared-lib/interfaces/index.d.ts.map +1 -1
- package/dist/esm/shared-lib/interfaces/index.js +1 -0
- package/dist/esm/shared-lib/interfaces/index.js.map +1 -1
- package/dist/esm/shared-lib/interfaces/wallet-signing-scenario.interface.d.ts +7 -23
- package/dist/esm/shared-lib/interfaces/wallet-signing-scenario.interface.d.ts.map +1 -1
- package/dist/esm/shared-lib/interfaces/wallet-signing-scenario.interface.js +41 -3
- package/dist/esm/shared-lib/interfaces/wallet-signing-scenario.interface.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-request.dto.d.ts +0 -7
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-request.dto.d.ts.map +0 -1
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-request.dto.js +0 -56
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-request.dto.js.map +0 -1
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-response.dto.d.ts +0 -6
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-response.dto.d.ts.map +0 -1
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-response.dto.js +0 -37
- package/dist/cjs/shared-lib/dto/signing-account/select-primary-account-response.dto.js.map +0 -1
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-request.dto.d.ts +0 -7
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-request.dto.d.ts.map +0 -1
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-request.dto.js +0 -46
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-request.dto.js.map +0 -1
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-response.dto.d.ts +0 -6
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-response.dto.d.ts.map +0 -1
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-response.dto.js +0 -28
- package/dist/esm/shared-lib/dto/signing-account/select-primary-account-response.dto.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
/**
|
|
3
3
|
* DTO for activating a pending signing account by setting its blockchain address
|
|
4
4
|
*
|
|
@@ -9,9 +9,4 @@ import type { SigningKey } from '../../interfaces/wallet.interface';
|
|
|
9
9
|
*
|
|
10
10
|
* This is a one-time operation - once activated, the address cannot be changed.
|
|
11
11
|
*/
|
|
12
|
-
export declare class ActivateSigningAccountDTO {
|
|
13
|
-
accountAddress: string;
|
|
14
|
-
signingKey?: SigningKey;
|
|
15
|
-
activationTags?: string[];
|
|
16
|
-
}
|
|
17
12
|
//# sourceMappingURL=activate-signing-account.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activate-signing-account.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/activate-signing-account.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activate-signing-account.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/activate-signing-account.dto.ts"],"names":[],"mappings":";AAKA;;;;;;;;;GASG"}
|
|
@@ -1,18 +1,5 @@
|
|
|
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.ActivateSigningAccountDTO = void 0;
|
|
13
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
const class_transformer_1 = require("class-transformer");
|
|
16
3
|
/**
|
|
17
4
|
* DTO for activating a pending signing account by setting its blockchain address
|
|
18
5
|
*
|
|
@@ -23,42 +10,34 @@ const class_transformer_1 = require("class-transformer");
|
|
|
23
10
|
*
|
|
24
11
|
* This is a one-time operation - once activated, the address cannot be changed.
|
|
25
12
|
*/
|
|
26
|
-
class ActivateSigningAccountDTO {
|
|
27
|
-
|
|
28
|
-
signingKey;
|
|
29
|
-
activationTags;
|
|
30
|
-
}
|
|
31
|
-
exports.ActivateSigningAccountDTO = ActivateSigningAccountDTO;
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, swagger_1.ApiProperty)({
|
|
13
|
+
/* export class ActivateSigningAccountDTO {
|
|
14
|
+
@ApiProperty({
|
|
34
15
|
description: 'The blockchain address to assign to this pending signing account',
|
|
35
16
|
example: '0x742d35Cc6634C0532925a3b8D6d103b3C7bb8c42'
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
17
|
+
})
|
|
18
|
+
@IsNotEmpty({ message: 'accountAddress is required for activation' })
|
|
19
|
+
@IsString({ message: 'accountAddress must be a string' })
|
|
20
|
+
@Transform(({ value }) => value?.trim())
|
|
21
|
+
accountAddress!: string;
|
|
22
|
+
|
|
23
|
+
@ApiPropertyOptional({
|
|
44
24
|
description: 'The signing key information for this account',
|
|
45
25
|
type: 'object'
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
26
|
+
})
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@ValidateNested()
|
|
29
|
+
@Type(() => Object)
|
|
30
|
+
signingKey?: SigningKey;
|
|
31
|
+
|
|
32
|
+
@ApiPropertyOptional({
|
|
54
33
|
description: 'Additional tags to add during activation',
|
|
55
34
|
type: [String],
|
|
56
35
|
example: ['activated', 'ready-for-transactions']
|
|
57
|
-
})
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
36
|
+
})
|
|
37
|
+
@IsOptional()
|
|
38
|
+
@IsArray()
|
|
39
|
+
@IsString({ each: true })
|
|
40
|
+
@Transform(({ value }) => Array.isArray(value) ? value.filter(tag => tag?.trim()) : [])
|
|
41
|
+
activationTags?: string[];
|
|
42
|
+
} */
|
|
64
43
|
//# sourceMappingURL=activate-signing-account.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activate-signing-account.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/activate-signing-account.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"activate-signing-account.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/activate-signing-account.dto.ts"],"names":[],"mappings":";;AAKA;;;;;;;;;GASG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6BI"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export * from './create-signing-account-request.dto';
|
|
2
|
-
export * from './select-primary-account-request.dto';
|
|
3
|
-
export * from './select-primary-account-response.dto';
|
|
4
2
|
export * from './signing-account.dto';
|
|
5
3
|
export * from './update-signing-account.dto';
|
|
6
4
|
export * from './activate-signing-account.dto';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AAGrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC"}
|
|
@@ -15,8 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-signing-account-request.dto"), exports);
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// export * from './select-primary-account-request.dto';
|
|
19
|
+
// export * from './select-primary-account-response.dto';
|
|
20
20
|
__exportStar(require("./signing-account.dto"), exports);
|
|
21
21
|
__exportStar(require("./update-signing-account.dto"), exports);
|
|
22
22
|
__exportStar(require("./activate-signing-account.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,wDAAwD;AACxD,yDAAyD;AACzD,wDAAsC;AACtC,+DAA6C;AAC7C,iEAA+C"}
|
|
@@ -13,12 +13,6 @@ export declare class SigningAccountDTO {
|
|
|
13
13
|
tags: string[];
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
updatedAt: Date;
|
|
16
|
-
|
|
17
|
-
export declare class SigningContextDTO {
|
|
18
|
-
ownerType: AccountOwnerType;
|
|
19
|
-
ownerId: string;
|
|
20
|
-
signingAccounts: SigningAccountDTO[];
|
|
21
|
-
activeSigningAccount?: SigningAccountDTO;
|
|
22
|
-
hasActiveSigners: boolean;
|
|
16
|
+
defaultSignerUrl: string | null;
|
|
23
17
|
}
|
|
24
18
|
//# sourceMappingURL=signing-account.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signing-account.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/signing-account.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGjF,qBAAa,iBAAiB;IAE1B,EAAE,EAAE,MAAM,CAAM;IAGhB,SAAS,EAAE,gBAAgB,CAAyB;IAGpD,OAAO,EAAE,MAAM,CAAM;IAGrB,QAAQ,EAAE,MAAM,CAAM;IAGtB,cAAc,EAAE,MAAM,CAAM;IAM5B,OAAO,EAAE,WAAW,CAAyB;IAG7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAO9B,MAAM,EAAE,oBAAoB,CAA+B;IAG3D,QAAQ,CAAC,EAAE,IAAI,CAAC;IAGhB,UAAU,CAAC,EAAE,GAAG,CAAC;IAGjB,IAAI,EAAE,MAAM,EAAE,CAAM;IAIpB,SAAS,EAAE,IAAI,CAAc;IAG7B,SAAS,EAAE,IAAI,CAAc;
|
|
1
|
+
{"version":3,"file":"signing-account.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/signing-account.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGjF,qBAAa,iBAAiB;IAE1B,EAAE,EAAE,MAAM,CAAM;IAGhB,SAAS,EAAE,gBAAgB,CAAyB;IAGpD,OAAO,EAAE,MAAM,CAAM;IAGrB,QAAQ,EAAE,MAAM,CAAM;IAGtB,cAAc,EAAE,MAAM,CAAM;IAM5B,OAAO,EAAE,WAAW,CAAyB;IAG7C,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAO9B,MAAM,EAAE,oBAAoB,CAA+B;IAG3D,QAAQ,CAAC,EAAE,IAAI,CAAC;IAGhB,UAAU,CAAC,EAAE,GAAG,CAAC;IAGjB,IAAI,EAAE,MAAM,EAAE,CAAM;IAIpB,SAAS,EAAE,IAAI,CAAc;IAG7B,SAAS,EAAE,IAAI,CAAc;IAO7B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;CAC1C"}
|
|
@@ -9,7 +9,7 @@ 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.
|
|
12
|
+
exports.SigningAccountDTO = void 0;
|
|
13
13
|
const enum_1 = require("../../enum");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
class SigningAccountDTO {
|
|
@@ -26,6 +26,7 @@ class SigningAccountDTO {
|
|
|
26
26
|
tags = [];
|
|
27
27
|
createdAt = new Date();
|
|
28
28
|
updatedAt = new Date();
|
|
29
|
+
defaultSignerUrl = null;
|
|
29
30
|
}
|
|
30
31
|
exports.SigningAccountDTO = SigningAccountDTO;
|
|
31
32
|
__decorate([
|
|
@@ -85,37 +86,33 @@ __decorate([
|
|
|
85
86
|
(0, swagger_1.ApiProperty)(),
|
|
86
87
|
__metadata("design:type", Date)
|
|
87
88
|
], SigningAccountDTO.prototype, "updatedAt", void 0);
|
|
88
|
-
class SigningContextDTO {
|
|
89
|
-
ownerType = enum_1.AccountOwnerType.USER;
|
|
90
|
-
ownerId = '';
|
|
91
|
-
signingAccounts = [];
|
|
92
|
-
activeSigningAccount;
|
|
93
|
-
hasActiveSigners = false;
|
|
94
|
-
}
|
|
95
|
-
exports.SigningContextDTO = SigningContextDTO;
|
|
96
|
-
__decorate([
|
|
97
|
-
(0, swagger_1.ApiProperty)({ enum: enum_1.AccountOwnerType, description: 'Type of owner (user, business, tenant, system)' }),
|
|
98
|
-
__metadata("design:type", String)
|
|
99
|
-
], SigningContextDTO.prototype, "ownerType", void 0);
|
|
100
89
|
__decorate([
|
|
101
|
-
(0, swagger_1.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
90
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
91
|
+
description: 'Default signer URL associated with the signing account, if applicable',
|
|
92
|
+
type: String,
|
|
93
|
+
nullable: true
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], SigningAccountDTO.prototype, "defaultSignerUrl", void 0);
|
|
97
|
+
/* export class SigningContextDTO {
|
|
98
|
+
@ApiProperty({ enum: AccountOwnerType, description: 'Type of owner (user, business, tenant, system)' })
|
|
99
|
+
ownerType: AccountOwnerType = AccountOwnerType.USER;
|
|
100
|
+
|
|
101
|
+
@ApiProperty({ description: 'ID of the owning entity' })
|
|
102
|
+
ownerId: string = '';
|
|
103
|
+
|
|
104
|
+
@ApiProperty({
|
|
106
105
|
description: 'Available signing accounts for this owner',
|
|
107
106
|
type: [SigningAccountDTO]
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
107
|
+
})
|
|
108
|
+
signingAccounts: SigningAccountDTO[] = [];
|
|
109
|
+
|
|
110
|
+
@ApiPropertyOptional({
|
|
113
111
|
description: 'Currently active signing account'
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
], SigningContextDTO.prototype, "hasActiveSigners", void 0);
|
|
112
|
+
})
|
|
113
|
+
activeSigningAccount?: SigningAccountDTO;
|
|
114
|
+
|
|
115
|
+
@ApiProperty()
|
|
116
|
+
hasActiveSigners: boolean = false;
|
|
117
|
+
} */
|
|
121
118
|
//# sourceMappingURL=signing-account.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signing-account.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/signing-account.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAiF;AACjF,6CAAmE;AAEnE,MAAa,iBAAiB;IAE1B,EAAE,GAAW,EAAE,CAAC;IAGhB,SAAS,GAAqB,uBAAgB,CAAC,IAAI,CAAC;IAGpD,OAAO,GAAW,EAAE,CAAC;IAGrB,QAAQ,GAAW,EAAE,CAAC;IAGtB,cAAc,GAAW,EAAE,CAAC;IAM5B,OAAO,GAAgB,kBAAW,CAAC,SAAS,CAAC;IAG7C,OAAO,GAAkB,IAAI,CAAC;IAO9B,MAAM,GAAyB,2BAAoB,CAAC,MAAM,CAAC;IAG3D,QAAQ,CAAQ;IAGhB,UAAU,CAAO;IAGjB,IAAI,GAAa,EAAE,CAAC;IAIpB,SAAS,GAAS,IAAI,IAAI,EAAE,CAAC;IAG7B,SAAS,GAAS,IAAI,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"signing-account.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/signing-account/signing-account.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qCAAiF;AACjF,6CAAmE;AAEnE,MAAa,iBAAiB;IAE1B,EAAE,GAAW,EAAE,CAAC;IAGhB,SAAS,GAAqB,uBAAgB,CAAC,IAAI,CAAC;IAGpD,OAAO,GAAW,EAAE,CAAC;IAGrB,QAAQ,GAAW,EAAE,CAAC;IAGtB,cAAc,GAAW,EAAE,CAAC;IAM5B,OAAO,GAAgB,kBAAW,CAAC,SAAS,CAAC;IAG7C,OAAO,GAAkB,IAAI,CAAC;IAO9B,MAAM,GAAyB,2BAAoB,CAAC,MAAM,CAAC;IAG3D,QAAQ,CAAQ;IAGhB,UAAU,CAAO;IAGjB,IAAI,GAAa,EAAE,CAAC;IAIpB,SAAS,GAAS,IAAI,IAAI,EAAE,CAAC;IAG7B,SAAS,GAAS,IAAI,IAAI,EAAE,CAAC;IAO7B,gBAAgB,GAAkB,IAAI,CAAC;CAC1C;AAtDD,8CAsDC;AApDG;IADC,IAAA,qBAAW,GAAE;;6CACE;AAGhB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,uBAAgB,EAAE,WAAW,EAAE,gDAAgD,EAAE,CAAC;;oDACnD;AAGpD;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;;kDACnC;AAGrB;IADC,IAAA,qBAAW,GAAE;;mDACQ;AAGtB;IADC,IAAA,qBAAW,GAAE;;yDACc;AAM5B;IAJC,IAAA,qBAAW,EACR,EAAE,IAAI,EAAE,kBAAW;QACnB,WAAW,EAAE,wDAAwD,EAAE,OAAO,EAAE,UAAU,EAAE,CAC/F;;kDAC4C;AAG7C;IADC,IAAA,qBAAW,GAAE;;kDACgB;AAO9B;IALC,IAAA,qBAAW,EAAC;QACT,IAAI,EAAE,2BAAoB;QAC1B,WAAW,EAAE,uCAAuC;QACpD,OAAO,EAAE,2BAAoB,CAAC,MAAM;KACvC,CAAC;;iDACyD;AAG3D;IADC,IAAA,6BAAmB,GAAE;8BACX,IAAI;mDAAC;AAGhB;IADC,IAAA,6BAAmB,GAAE;;qDACL;AAGjB;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;;+CACZ;AAIpB;IADC,IAAA,qBAAW,GAAE;8BACH,IAAI;oDAAc;AAG7B;IADC,IAAA,qBAAW,GAAE;8BACH,IAAI;oDAAc;AAO7B;IALC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,uEAAuE;QACpF,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;2DACqC;AAG3C;;;;;;;;;;;;;;;;;;;;IAoBI"}
|
|
@@ -9,4 +9,5 @@ export * from './transaction.dto';
|
|
|
9
9
|
export * from './transaction.request.dto';
|
|
10
10
|
export * from './transaction-analytics.request.dto';
|
|
11
11
|
export * from './transaction-pagination.request.dto';
|
|
12
|
+
export * from './transaction-request-actionable.dto';
|
|
12
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/index.ts"],"names":[],"mappings":"AACA,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mDAAmD,CAAC;AAClE,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,kDAAkD,CAAC;AACjE,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAErD,cAAc,sCAAsC,CAAC"}
|
|
@@ -25,4 +25,5 @@ __exportStar(require("./transaction.dto"), exports);
|
|
|
25
25
|
__exportStar(require("./transaction.request.dto"), exports);
|
|
26
26
|
__exportStar(require("./transaction-analytics.request.dto"), exports);
|
|
27
27
|
__exportStar(require("./transaction-pagination.request.dto"), exports);
|
|
28
|
+
__exportStar(require("./transaction-request-actionable.dto"), exports);
|
|
28
29
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,sEAAoD;AACpD,mEAAiD;AACjD,oFAAkE;AAClE,4DAA0C;AAC1C,uEAAqD;AACrD,mFAAiE;AACjE,oEAAkD;AAClD,oDAAkC;AAClC,4DAA0C;AAC1C,sEAAoD;AACpD,uEAAqD;AAErD,uEAAqD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum TransactionRequestActionType {
|
|
2
|
+
SIGN_AND_SEND = "SIGN_AND_SEND",
|
|
3
|
+
LINK_SIGNING_ACCOUNT = "LINK_SIGNING_ACCOUNT",
|
|
4
|
+
SIGN_UP = "SIGN_UP",
|
|
5
|
+
NONE = "NONE"
|
|
6
|
+
}
|
|
7
|
+
export declare class TransactionActionableDTO {
|
|
8
|
+
message: string | null;
|
|
9
|
+
actionUrl: string | null;
|
|
10
|
+
authToken: string | null;
|
|
11
|
+
actionType: TransactionRequestActionType;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=transaction-request-actionable.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-request-actionable.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-request-actionable.dto.ts"],"names":[],"mappings":"AAEA,oBAAY,4BAA4B;IAEpC,aAAa,kBAAkB;IAC/B,oBAAoB,yBAAyB;IAC7C,OAAO,YAAY;IACnB,IAAI,SAAS;CAChB;AAED,qBAAa,wBAAwB;IAIjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAQ;IAK9B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAKhC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAQ;IAKhC,UAAU,EAAE,4BAA4B,CAAqC;CAChF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.TransactionActionableDTO = exports.TransactionRequestActionType = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
var TransactionRequestActionType;
|
|
15
|
+
(function (TransactionRequestActionType) {
|
|
16
|
+
// SUBMIT = 'SUBMIT',
|
|
17
|
+
TransactionRequestActionType["SIGN_AND_SEND"] = "SIGN_AND_SEND";
|
|
18
|
+
TransactionRequestActionType["LINK_SIGNING_ACCOUNT"] = "LINK_SIGNING_ACCOUNT";
|
|
19
|
+
TransactionRequestActionType["SIGN_UP"] = "SIGN_UP";
|
|
20
|
+
TransactionRequestActionType["NONE"] = "NONE";
|
|
21
|
+
})(TransactionRequestActionType || (exports.TransactionRequestActionType = TransactionRequestActionType = {}));
|
|
22
|
+
class TransactionActionableDTO {
|
|
23
|
+
message = null;
|
|
24
|
+
actionUrl = null;
|
|
25
|
+
authToken = null;
|
|
26
|
+
actionType = TransactionRequestActionType.NONE;
|
|
27
|
+
}
|
|
28
|
+
exports.TransactionActionableDTO = TransactionActionableDTO;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
31
|
+
description: 'User-friendly message describing the action'
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], TransactionActionableDTO.prototype, "message", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
37
|
+
description: 'URL to perform the action'
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], TransactionActionableDTO.prototype, "actionUrl", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
43
|
+
description: 'Authentication token for the action'
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], TransactionActionableDTO.prototype, "authToken", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({
|
|
49
|
+
description: 'Type of action to be performed'
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TransactionActionableDTO.prototype, "actionType", void 0);
|
|
53
|
+
//# sourceMappingURL=transaction-request-actionable.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction-request-actionable.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction-request-actionable.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AAEnE,IAAY,4BAMX;AAND,WAAY,4BAA4B;IACpC,qBAAqB;IACrB,+DAA+B,CAAA;IAC/B,6EAA6C,CAAA;IAC7C,mDAAmB,CAAA;IACnB,6CAAa,CAAA;AACjB,CAAC,EANW,4BAA4B,4CAA5B,4BAA4B,QAMvC;AAED,MAAa,wBAAwB;IAIjC,OAAO,GAAkB,IAAI,CAAC;IAK9B,SAAS,GAAkB,IAAI,CAAC;IAKhC,SAAS,GAAkB,IAAI,CAAC;IAKhC,UAAU,GAAiC,4BAA4B,CAAC,IAAI,CAAC;CAChF;AApBD,4DAoBC;AAhBG;IAHC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6CAA6C;KAC7D,CAAC;;yDAC4B;AAK9B;IAHC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,2BAA2B;KAC3C,CAAC;;2DAC8B;AAKhC;IAHC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,qCAAqC;KACrD,CAAC;;2DAC8B;AAKhC;IAHC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gCAAgC;KAChD,CAAC;;4DAC2E"}
|
|
@@ -2,17 +2,23 @@ import { Web3TransactionType } from "../../enum/transaction-type.enum";
|
|
|
2
2
|
import { TokenSelectorDTO } from "../token/token-selector.dto";
|
|
3
3
|
import { AccountSelectorDTO } from "../account-selector.dto";
|
|
4
4
|
import { TransactionFormat } from "../../types/transaction-format";
|
|
5
|
-
import type { AnyTransactionData } from "@explorins/web3-ts/types";
|
|
6
5
|
import { TransactionDTO } from "./transaction.dto";
|
|
7
6
|
import { WalletSigningScenarioType } from "../../interfaces/wallet-signing-scenario.interface";
|
|
7
|
+
import { TransactionStatus } from "../../enum/transaction-status.enum";
|
|
8
|
+
import { CounterfactualWalletTransactionResponse } from "../../interfaces";
|
|
9
|
+
import type { LegacyTransaction } from "@explorins/web3-ts/types";
|
|
10
|
+
import { TransactionActionableDTO } from "./transaction-request-actionable.dto";
|
|
8
11
|
export declare class TransactionSubmissionRequestDTO {
|
|
9
12
|
transactionId: string;
|
|
10
13
|
type: TransactionFormat;
|
|
11
14
|
signature?: string;
|
|
12
15
|
signedTransaction?: string;
|
|
13
16
|
}
|
|
14
|
-
export declare class TransactionRequestResponseDTO
|
|
15
|
-
|
|
17
|
+
export declare class TransactionRequestResponseDTO {
|
|
18
|
+
transaction: TransactionDTO;
|
|
19
|
+
transactionStatus: TransactionStatus;
|
|
20
|
+
signingData: CounterfactualWalletTransactionResponse | LegacyTransaction | null;
|
|
21
|
+
actionable: TransactionActionableDTO | null;
|
|
16
22
|
walletStatus: WalletSigningScenarioType;
|
|
17
23
|
}
|
|
18
24
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAwD,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"transaction.request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAwD,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEzH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oDAAoD,CAAC;AAE/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,uCAAuC,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAEhF,qBAAa,+BAA+B;IAIxC,aAAa,EAAE,MAAM,CAAM;IAQ3B,IAAI,EAAE,iBAAiB,CAA8B;IAOrD,SAAS,CAAC,EAAE,MAAM,CAAC;IAOnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,qBAAa,6BAA6B;IAMxC,WAAW,EAAE,cAAc,CAAwB;IAMnD,iBAAiB,EAAE,iBAAiB,CAA6B;IAOjE,WAAW,EAAE,uCAAuC,GAAG,iBAAiB,GAAG,IAAI,CAAQ;IAOvF,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAQ;IAoBnD,YAAY,EAAE,yBAAyB,CAAsD;CAO9F;AAGH;;;;GAIG;AACH,qBAAa,qBAAqB;IAQ9B,mBAAmB,EAAG,mBAAmB,CAAC;IAS1C,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAS5B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAS/B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IASzB,MAAM,EAAG,MAAM,CAAC;CACnB"}
|
|
@@ -17,8 +17,12 @@ const transaction_type_enum_1 = require("../../enum/transaction-type.enum");
|
|
|
17
17
|
const token_selector_dto_1 = require("../token/token-selector.dto");
|
|
18
18
|
const account_selector_dto_1 = require("../account-selector.dto");
|
|
19
19
|
const transaction_format_1 = require("../../types/transaction-format");
|
|
20
|
+
// import type { AnyTransactionData } from "@explorins/web3-ts/types";
|
|
20
21
|
const transaction_dto_1 = require("./transaction.dto");
|
|
21
22
|
const wallet_signing_scenario_interface_1 = require("../../interfaces/wallet-signing-scenario.interface");
|
|
23
|
+
// import { SigningAccountDTO } from "../signing-account/signing-account.dto";
|
|
24
|
+
const transaction_status_enum_1 = require("../../enum/transaction-status.enum");
|
|
25
|
+
const transaction_request_actionable_dto_1 = require("./transaction-request-actionable.dto");
|
|
22
26
|
class TransactionSubmissionRequestDTO {
|
|
23
27
|
transactionId = '';
|
|
24
28
|
type = transaction_format_1.TRANSACTION_FORMATS.LEGACY;
|
|
@@ -57,11 +61,41 @@ __decorate([
|
|
|
57
61
|
}),
|
|
58
62
|
__metadata("design:type", String)
|
|
59
63
|
], TransactionSubmissionRequestDTO.prototype, "signedTransaction", void 0);
|
|
60
|
-
class TransactionRequestResponseDTO
|
|
64
|
+
class TransactionRequestResponseDTO {
|
|
65
|
+
transaction = new transaction_dto_1.TransactionDTO();
|
|
66
|
+
transactionStatus = transaction_status_enum_1.TransactionStatus.CREATED;
|
|
61
67
|
signingData = null;
|
|
68
|
+
actionable = null;
|
|
69
|
+
/* @ApiPropertyOptional({
|
|
70
|
+
description: 'Default signer URL associated with the signing account, if applicable',
|
|
71
|
+
type: String,
|
|
72
|
+
nullable: true
|
|
73
|
+
})
|
|
74
|
+
defaultSignerUrl: string | null = null; */
|
|
75
|
+
// TODO: Consider redacting sensitive signing account info
|
|
76
|
+
/* @ApiProperty({
|
|
77
|
+
description: 'Account details used for signing the transaction, if applicable',
|
|
78
|
+
type: () => SigningAccountDTO,
|
|
79
|
+
nullable: true
|
|
80
|
+
})
|
|
81
|
+
signingAccount: SigningAccountDTO | null = null; */
|
|
62
82
|
walletStatus = wallet_signing_scenario_interface_1.WalletSigningScenarioType.WALLET_AND_SIGNING_READY;
|
|
63
83
|
}
|
|
64
84
|
exports.TransactionRequestResponseDTO = TransactionRequestResponseDTO;
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
description: 'Transaction details',
|
|
88
|
+
type: transaction_dto_1.TransactionDTO
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", transaction_dto_1.TransactionDTO)
|
|
91
|
+
], TransactionRequestResponseDTO.prototype, "transaction", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
description: 'Current status of the transaction',
|
|
95
|
+
enum: transaction_status_enum_1.TransactionStatus
|
|
96
|
+
}),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], TransactionRequestResponseDTO.prototype, "transactionStatus", void 0);
|
|
65
99
|
__decorate([
|
|
66
100
|
(0, swagger_1.ApiProperty)({
|
|
67
101
|
description: 'Prepared transaction data ready for signing (if applicable)',
|
|
@@ -70,6 +104,14 @@ __decorate([
|
|
|
70
104
|
}),
|
|
71
105
|
__metadata("design:type", Object)
|
|
72
106
|
], TransactionRequestResponseDTO.prototype, "signingData", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, swagger_1.ApiProperty)({
|
|
109
|
+
description: 'Actionable details for the transaction, if applicable',
|
|
110
|
+
type: transaction_request_actionable_dto_1.TransactionActionableDTO,
|
|
111
|
+
nullable: true
|
|
112
|
+
}),
|
|
113
|
+
__metadata("design:type", Object)
|
|
114
|
+
], TransactionRequestResponseDTO.prototype, "actionable", void 0);
|
|
73
115
|
__decorate([
|
|
74
116
|
(0, swagger_1.ApiProperty)({
|
|
75
117
|
description: 'Current status of the wallet signing process',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAA2F;AAC3F,4EAAuE;AACvE,oEAA+D;AAC/D,kEAA6D;AAC7D,uEAAyH;
|
|
1
|
+
{"version":3,"file":"transaction.request.dto.js","sourceRoot":"","sources":["../../../../../src/shared-lib/dto/transaction/transaction.request.dto.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CounterfactualWalletEIP712Data, TRANSACTION_FORMATS } from "@explorins/web3-ts/types";
|
|
2
|
+
/**
|
|
3
|
+
* Metadata for counterfactual wallet transaction context
|
|
4
|
+
* Provides additional information for transaction processing
|
|
5
|
+
*/
|
|
6
|
+
export interface CounterfactualWalletTransactionMetadata {
|
|
7
|
+
walletAddress: string;
|
|
8
|
+
walletId: string;
|
|
9
|
+
isCounterfactualWallet: boolean;
|
|
10
|
+
deadline: number;
|
|
11
|
+
signingAccount: string;
|
|
12
|
+
/** Optional transaction identifier for tracking */
|
|
13
|
+
transactionId?: string;
|
|
14
|
+
/** Optional nonce for debugging */
|
|
15
|
+
nonce?: number;
|
|
16
|
+
/** Optional chain information */
|
|
17
|
+
chainId?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Complete response structure for counterfactual wallet transaction wrapping
|
|
21
|
+
* This is the main interface returned by wrapTransactionForCounterfactualWallet
|
|
22
|
+
*/
|
|
23
|
+
export interface CounterfactualWalletTransactionResponse {
|
|
24
|
+
format: typeof TRANSACTION_FORMATS.EIP_712;
|
|
25
|
+
typedData: CounterfactualWalletEIP712Data;
|
|
26
|
+
metadata: CounterfactualWalletTransactionMetadata;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Extended response that includes transaction ID for tracking
|
|
30
|
+
* Used when transaction tracking is required
|
|
31
|
+
*/
|
|
32
|
+
//# sourceMappingURL=counterfactual-wallet-response.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counterfactual-wallet-response.interface.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/counterfactual-wallet-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAE/F;;;GAGG;AACH,MAAM,WAAW,uCAAuC;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,EAAE,OAAO,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IAEvB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,uCAAuC;IACtD,MAAM,EAAE,OAAO,mBAAmB,CAAC,OAAO,CAAC;IAC3C,SAAS,EAAE,8BAA8B,CAAC;IAC1C,QAAQ,EAAE,uCAAuC,CAAC;CACnD;AAED;;;GAGG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Extended response that includes transaction ID for tracking
|
|
5
|
+
* Used when transaction tracking is required
|
|
6
|
+
*/
|
|
7
|
+
/* export interface CounterfactualWalletTransactionWithIdResponseDto extends CounterfactualWalletTransactionResponseDto {
|
|
8
|
+
transactionId: string;
|
|
9
|
+
} */
|
|
10
|
+
//# sourceMappingURL=counterfactual-wallet-response.interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"counterfactual-wallet-response.interface.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/counterfactual-wallet-response.interface.ts"],"names":[],"mappings":";;AA+BA;;;GAGG;AACH;;IAEI"}
|
|
@@ -14,4 +14,5 @@ export * from './base-pagination.interface';
|
|
|
14
14
|
export * from './group-by-expression.interface';
|
|
15
15
|
export * from './transaction-analytics-request.interface';
|
|
16
16
|
export * from './transaction.interface';
|
|
17
|
+
export * from './counterfactual-wallet-response.interface';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAE1D,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/index.ts"],"names":[],"mappings":"AACA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2CAA2C,CAAC;AAE1D,cAAc,yBAAyB,CAAC;AAExC,cAAc,4CAA4C,CAAC"}
|
|
@@ -31,4 +31,5 @@ __exportStar(require("./base-pagination.interface"), exports);
|
|
|
31
31
|
__exportStar(require("./group-by-expression.interface"), exports);
|
|
32
32
|
__exportStar(require("./transaction-analytics-request.interface"), exports);
|
|
33
33
|
__exportStar(require("./transaction.interface"), exports);
|
|
34
|
+
__exportStar(require("./counterfactual-wallet-response.interface"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,6DAA2C;AAC3C,uEAAqD;AACrD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,+DAA6C;AAC7C,2EAAyD;AACzD,iEAA+C;AAC/C,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,8DAA4C;AAC5C,kEAAgD;AAChD,4EAA0D;AAE1D,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAkD;AAClD,6DAA2C;AAC3C,uEAAqD;AACrD,iEAA+C;AAC/C,iEAA+C;AAC/C,0DAAwC;AACxC,+DAA6C;AAC7C,2EAAyD;AACzD,iEAA+C;AAC/C,qDAAmC;AACnC,gEAA8C;AAC9C,kEAAgD;AAChD,sEAAoD;AACpD,8DAA4C;AAC5C,kEAAgD;AAChD,4EAA0D;AAE1D,0DAAwC;AAExC,6EAA2D"}
|
|
@@ -7,34 +7,18 @@
|
|
|
7
7
|
* Location: Shared library (cross-domain communication contracts)
|
|
8
8
|
* Usage: Between wallet and transaction domains via CQRS
|
|
9
9
|
*/
|
|
10
|
-
import {
|
|
11
|
-
import { WalletDTO } from "../dto/wallet.dto";
|
|
10
|
+
import { SigningAccountDTO, WalletDTO } from "../dto";
|
|
12
11
|
export declare enum WalletSigningScenarioType {
|
|
13
12
|
WALLET_AND_SIGNING_READY = "WALLET_AND_SIGNING_READY",
|
|
14
13
|
WALLET_MISSING_SIGNING = "WALLET_MISSING_SIGNING_ACCOUNT",
|
|
15
14
|
WALLET_NOT_FOUND = "WALLET_NOT_FOUND"
|
|
16
15
|
}
|
|
17
|
-
interface
|
|
16
|
+
export interface WalletSigningScenario {
|
|
18
17
|
type: WalletSigningScenarioType;
|
|
18
|
+
wallet: WalletDTO | null;
|
|
19
|
+
signingAccount: SigningAccountDTO | null;
|
|
19
20
|
}
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
signingAccount: SelectPrimaryAccountResponseDTO;
|
|
24
|
-
}
|
|
25
|
-
export interface WalletMissingSigningScenario extends WalletSigningScenarioBase {
|
|
26
|
-
type: WalletSigningScenarioType.WALLET_MISSING_SIGNING;
|
|
27
|
-
wallet: WalletDTO;
|
|
28
|
-
}
|
|
29
|
-
export interface WalletNotFoundScenario extends WalletSigningScenarioBase {
|
|
30
|
-
type: WalletSigningScenarioType.WALLET_NOT_FOUND;
|
|
31
|
-
address: string;
|
|
32
|
-
chainId: number;
|
|
33
|
-
message: string;
|
|
34
|
-
}
|
|
35
|
-
export type WalletSigningScenario = WalletAndSigningReadyScenario | WalletMissingSigningScenario | WalletNotFoundScenario;
|
|
36
|
-
export declare const isWalletAndSigningReady: (scenario: WalletSigningScenario) => scenario is WalletAndSigningReadyScenario;
|
|
37
|
-
export declare const isWalletMissingSigning: (scenario: WalletSigningScenario) => scenario is WalletMissingSigningScenario;
|
|
38
|
-
export declare const isWalletNotFound: (scenario: WalletSigningScenario) => scenario is WalletNotFoundScenario;
|
|
39
|
-
export {};
|
|
21
|
+
export declare const isWalletAndSigningReady: (scenario: WalletSigningScenario) => boolean;
|
|
22
|
+
export declare const isWalletMissingSigning: (scenario: WalletSigningScenario) => boolean;
|
|
23
|
+
export declare const isWalletNotFound: (scenario: WalletSigningScenario) => boolean;
|
|
40
24
|
//# sourceMappingURL=wallet-signing-scenario.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-signing-scenario.interface.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/wallet-signing-scenario.interface.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"wallet-signing-scenario.interface.d.ts","sourceRoot":"","sources":["../../../../src/shared-lib/interfaces/wallet-signing-scenario.interface.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAKtD,oBAAY,yBAAyB;IACnC,wBAAwB,6BAA6B;IACrD,sBAAsB,mCAAmC;IACzD,gBAAgB,qBAAqB;CACtC;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,yBAAyB,CAAC;IAChC,MAAM,EAAE,SAAS,GAAG,IAAI,CAAC;IACzB,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAC;CAC1C;AA+CD,eAAO,MAAM,uBAAuB,GAAI,UAAU,qBAAqB,KAAG,OAGxC,CAAC;AAEnC,eAAO,MAAM,sBAAsB,GAAI,UAAU,qBAAqB,KAAG,OAE/C,CAAC;AAE3B,eAAO,MAAM,gBAAgB,GAAI,UAAU,qBAAqB,KAAG,OAEzC,CAAA"}
|