@heliofi/common 0.2.122 → 0.2.124

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.
@@ -0,0 +1,5 @@
1
+ export interface DecentAppFeeOverride {
2
+ bps: number;
3
+ flatFee: string;
4
+ receiverAddress: string;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=DecentAppFeeOverride.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DecentAppFeeOverride.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/DecentAppFeeOverride.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { DecentSwapOptions } from './SwapOptions';
2
2
  import { DecentChainId } from './DecentChainId';
3
- import { AppFee } from './DeceptAppFee';
3
+ import { DecentAppFeeOverride } from './DecentAppFeeOverride';
4
4
  export interface GetRoutesOptions {
5
5
  sender: string;
6
6
  srcChainId: DecentChainId;
@@ -11,5 +11,5 @@ export interface GetRoutesOptions {
11
11
  swapDirection?: DecentSwapOptions;
12
12
  recipient?: string;
13
13
  amount?: string;
14
- appFees?: AppFee[];
14
+ appFees?: DecentAppFeeOverride[];
15
15
  }
@@ -5,3 +5,4 @@ export * from './GetPathOptions';
5
5
  export * from './GetRoutesOptions';
6
6
  export * from './SwapOptions';
7
7
  export * from './DecentChainId';
8
+ export * from './DecentAppFeeOverride';
@@ -21,4 +21,5 @@ __exportStar(require("./GetPathOptions"), exports);
21
21
  __exportStar(require("./GetRoutesOptions"), exports);
22
22
  __exportStar(require("./SwapOptions"), exports);
23
23
  __exportStar(require("./DecentChainId"), exports);
24
+ __exportStar(require("./DecentAppFeeOverride"), exports);
24
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/decent-swap/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,4DAA0C;AAC1C,mDAAiC;AACjC,qDAAmC;AACnC,gDAA8B;AAC9B,kDAAgC;AAChC,yDAAuC"}
@@ -2,4 +2,5 @@ export declare class CreateDepositDto {
2
2
  name: string;
3
3
  description?: string;
4
4
  currencyIds: string[];
5
+ isCardPaymentEnabled?: boolean;
5
6
  }
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateDepositDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class CreateDepositDto {
15
+ constructor() {
16
+ this.isCardPaymentEnabled = true;
17
+ }
15
18
  }
16
19
  exports.CreateDepositDto = CreateDepositDto;
17
20
  __decorate([
@@ -33,4 +36,9 @@ __decorate([
33
36
  (0, class_validator_1.ArrayMaxSize)(1),
34
37
  __metadata("design:type", Array)
35
38
  ], CreateDepositDto.prototype, "currencyIds", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsBoolean)(),
41
+ (0, class_validator_1.IsOptional)(),
42
+ __metadata("design:type", Boolean)
43
+ ], CreateDepositDto.prototype, "isCardPaymentEnabled", void 0);
36
44
  //# sourceMappingURL=createDeposit.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"createDeposit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDeposit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,gBAAgB;CAgB5B;AAhBD,4CAgBC;AAZC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACF;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACM;AAMrB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;qDACM"}
1
+ {"version":3,"file":"createDeposit.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDeposit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDASyB;AAEzB,MAAa,gBAAgB;IAA7B;QAmBE,yBAAoB,GAAa,IAAI,CAAC;IACxC,CAAC;CAAA;AApBD,4CAoBC;AAhBC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;8CACF;AAKb;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;qDACM;AAMrB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;;qDACM;AAItB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACyB"}
@@ -3,8 +3,9 @@ import { Platform } from '../../../constants';
3
3
  export declare class DepositEntity extends Entity {
4
4
  id: string;
5
5
  name: string;
6
- platform: Platform;
7
6
  description?: string;
7
+ platform: Platform;
8
+ isCardPaymentEnabled?: boolean;
8
9
  createdAt: string;
9
10
  updatedAt: string;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAYxC;AAZD,sCAYC"}
1
+ {"version":3,"file":"Deposit.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/entities/Deposit.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,aAAc,SAAQ,eAAM;CAcxC;AAdD,sCAcC"}