@heliofi/common 0.2.252 → 0.2.254

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.
@@ -15,4 +15,5 @@ export declare class DepositWalletIncomingTransaction {
15
15
  paymentMethod?: PaymentMethod;
16
16
  refunded?: boolean;
17
17
  refundTransactionSignature?: string;
18
+ currencySymbol?: string;
18
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"DepositWalletIncomingTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/entities/DepositWalletIncomingTransaction.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,gCAAgC;CA6B5C;AA7BD,4EA6BC"}
1
+ {"version":3,"file":"DepositWalletIncomingTransaction.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-wallet-incoming-transaction/entities/DepositWalletIncomingTransaction.entity.ts"],"names":[],"mappings":";;;AAGA,MAAa,gCAAgC;CA+B5C;AA/BD,4EA+BC"}
@@ -1,5 +1,6 @@
1
1
  export declare enum WithdrawState {
2
2
  QUOTED = "QUOTED",
3
+ SUBMITTING = "SUBMITTING",
3
4
  SUBMITTED = "SUBMITTED",
4
5
  BRIDGING = "BRIDGING",
5
6
  COMPLETED = "COMPLETED",
@@ -4,6 +4,7 @@ exports.WithdrawState = void 0;
4
4
  var WithdrawState;
5
5
  (function (WithdrawState) {
6
6
  WithdrawState["QUOTED"] = "QUOTED";
7
+ WithdrawState["SUBMITTING"] = "SUBMITTING";
7
8
  WithdrawState["SUBMITTED"] = "SUBMITTED";
8
9
  WithdrawState["BRIDGING"] = "BRIDGING";
9
10
  WithdrawState["COMPLETED"] = "COMPLETED";
@@ -1 +1 @@
1
- {"version":3,"file":"WithdrawState.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawState.ts"],"names":[],"mappings":";;;AAAA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,kDAAiC,CAAA;IACjC,oCAAmB,CAAA;IACnB,8DAA6C,CAAA;AAC/C,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
1
+ {"version":3,"file":"WithdrawState.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/constants/WithdrawState.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,kCAAiB,CAAA;IAIjB,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,kDAAiC,CAAA;IACjC,oCAAmB,CAAA;IACnB,8DAA6C,CAAA;AAC/C,CAAC,EAbW,aAAa,6BAAb,aAAa,QAaxB"}
@@ -8,4 +8,7 @@ export * from './preparedWithdrawSummary.dto';
8
8
  export * from './preparedWithdrawTypedData.dto';
9
9
  export * from './preparedWithdrawTypedDataDomain.dto';
10
10
  export * from './preparedWithdrawTypedDataField.dto';
11
+ export * from './submitWithdraw.dto';
12
+ export * from './submitWithdrawResponse.dto';
13
+ export * from './submitWithdrawSignedTx.dto';
11
14
  export * from './updateWithdraw.dto';
@@ -24,5 +24,8 @@ __exportStar(require("./preparedWithdrawSummary.dto"), exports);
24
24
  __exportStar(require("./preparedWithdrawTypedData.dto"), exports);
25
25
  __exportStar(require("./preparedWithdrawTypedDataDomain.dto"), exports);
26
26
  __exportStar(require("./preparedWithdrawTypedDataField.dto"), exports);
27
+ __exportStar(require("./submitWithdraw.dto"), exports);
28
+ __exportStar(require("./submitWithdrawResponse.dto"), exports);
29
+ __exportStar(require("./submitWithdrawSignedTx.dto"), exports);
27
30
  __exportStar(require("./updateWithdraw.dto"), exports);
28
31
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,iEAA+C;AAC/C,gEAA8C;AAC9C,kEAAgD;AAChD,wEAAsD;AACtD,uEAAqD;AACrD,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,uDAAqC;AACrC,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C;AAC3C,iEAA+C;AAC/C,gEAA8C;AAC9C,kEAAgD;AAChD,wEAAsD;AACtD,uEAAqD;AACrD,uDAAqC;AACrC,+DAA6C;AAC7C,+DAA6C;AAC7C,uDAAqC"}
@@ -0,0 +1,5 @@
1
+ import { SubmitWithdrawSignedTxDto } from './submitWithdrawSignedTx.dto';
2
+ export declare class SubmitWithdrawDto {
3
+ token: string;
4
+ signedTx: SubmitWithdrawSignedTxDto;
5
+ }
@@ -0,0 +1,28 @@
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.SubmitWithdrawDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const submitWithdrawSignedTx_dto_1 = require("./submitWithdrawSignedTx.dto");
16
+ class SubmitWithdrawDto {
17
+ }
18
+ exports.SubmitWithdrawDto = SubmitWithdrawDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsJWT)(),
21
+ __metadata("design:type", String)
22
+ ], SubmitWithdrawDto.prototype, "token", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.ValidateNested)(),
25
+ (0, class_transformer_1.Type)(() => submitWithdrawSignedTx_dto_1.SubmitWithdrawSignedTxDto),
26
+ __metadata("design:type", submitWithdrawSignedTx_dto_1.SubmitWithdrawSignedTxDto)
27
+ ], SubmitWithdrawDto.prototype, "signedTx", void 0);
28
+ //# sourceMappingURL=submitWithdraw.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitWithdraw.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdraw.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAAwD;AACxD,6EAAyE;AAEzE,MAAa,iBAAiB;CAY7B;AAZD,8CAYC;AALC;IADC,IAAA,uBAAK,GAAE;;gDACM;AAId;IAFC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sDAAyB,CAAC;8BAC5B,sDAAyB;mDAAC"}
@@ -0,0 +1,8 @@
1
+ import { BroadcastAck } from '../constants/BroadcastAck';
2
+ import { WithdrawState } from '../constants/WithdrawState';
3
+ export declare class SubmitWithdrawResponseDto {
4
+ withdrawId: string;
5
+ txHash: string | null;
6
+ state: WithdrawState;
7
+ broadcastAck: BroadcastAck | null;
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmitWithdrawResponseDto = void 0;
4
+ class SubmitWithdrawResponseDto {
5
+ }
6
+ exports.SubmitWithdrawResponseDto = SubmitWithdrawResponseDto;
7
+ //# sourceMappingURL=submitWithdrawResponse.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitWithdrawResponse.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawResponse.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,yBAAyB;CAsBrC;AAtBD,8DAsBC"}
@@ -0,0 +1,5 @@
1
+ import { SignedTransactionKind } from '../../broadcast/constants/SignedTransactionKind';
2
+ export declare class SubmitWithdrawSignedTxDto {
3
+ kind: SignedTransactionKind;
4
+ signature: string;
5
+ }
@@ -0,0 +1,29 @@
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.SubmitWithdrawSignedTxDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const SignedTransactionKind_1 = require("../../broadcast/constants/SignedTransactionKind");
15
+ class SubmitWithdrawSignedTxDto {
16
+ }
17
+ exports.SubmitWithdrawSignedTxDto = SubmitWithdrawSignedTxDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(SignedTransactionKind_1.SignedTransactionKind),
20
+ __metadata("design:type", String)
21
+ ], SubmitWithdrawSignedTxDto.prototype, "kind", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.Matches)(/^0x[0-9a-fA-F]{130}$/, {
25
+ message: 'signature must be a 0x-prefixed 65-byte (130 hex char) secp256k1 signature',
26
+ }),
27
+ __metadata("design:type", String)
28
+ ], SubmitWithdrawSignedTxDto.prototype, "signature", void 0);
29
+ //# sourceMappingURL=submitWithdrawSignedTx.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"submitWithdrawSignedTx.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/withdraw/dtos/submitWithdrawSignedTx.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4D;AAC5D,2FAAwF;AAWxF,MAAa,yBAAyB;CAcrC;AAdD,8DAcC;AAZC;IADC,IAAA,wBAAM,EAAC,6CAAqB,CAAC;;uDACF;AAW5B;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,yBAAO,EAAC,sBAAsB,EAAE;QAC/B,OAAO,EACL,4EAA4E;KAC/E,CAAC;;4DACgB"}