@heliofi/common 0.1.330 → 0.1.332-alpha.0

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.
Files changed (47) hide show
  1. package/dist/src/domain/model/affiliate/entities/affiliateDetails.entity.d.ts +4 -0
  2. package/dist/src/domain/model/affiliate/entities/affiliateDetails.entity.js +8 -0
  3. package/dist/src/domain/model/affiliate/entities/affiliateDetails.entity.js.map +1 -0
  4. package/dist/src/domain/model/affiliate/entities/index.d.ts +1 -0
  5. package/dist/src/domain/model/affiliate/entities/index.js +18 -0
  6. package/dist/src/domain/model/affiliate/entities/index.js.map +1 -0
  7. package/dist/src/domain/model/affiliate/index.d.ts +1 -0
  8. package/dist/src/domain/model/affiliate/index.js +18 -0
  9. package/dist/src/domain/model/affiliate/index.js.map +1 -0
  10. package/dist/src/domain/model/helio-wallet/dtos/getFloorPrices.dto.d.ts +3 -0
  11. package/dist/src/domain/model/helio-wallet/dtos/getFloorPrices.dto.js +24 -0
  12. package/dist/src/domain/model/helio-wallet/dtos/getFloorPrices.dto.js.map +1 -0
  13. package/dist/src/domain/model/helio-wallet/dtos/index.d.ts +1 -0
  14. package/dist/src/domain/model/helio-wallet/dtos/index.js +18 -0
  15. package/dist/src/domain/model/helio-wallet/dtos/index.js.map +1 -0
  16. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndNftAddress.entity.d.ts +5 -0
  17. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndNftAddress.entity.js +22 -0
  18. package/dist/src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndNftAddress.entity.js.map +1 -0
  19. package/dist/src/domain/model/helio-wallet/entities/index.d.ts +1 -0
  20. package/dist/src/domain/model/helio-wallet/entities/index.js +18 -0
  21. package/dist/src/domain/model/helio-wallet/entities/index.js.map +1 -0
  22. package/dist/src/domain/model/helio-wallet/index.d.ts +2 -0
  23. package/dist/src/domain/model/helio-wallet/index.js +19 -0
  24. package/dist/src/domain/model/helio-wallet/index.js.map +1 -0
  25. package/dist/src/domain/model/index.d.ts +2 -0
  26. package/dist/src/domain/model/index.js +2 -0
  27. package/dist/src/domain/model/index.js.map +1 -1
  28. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.d.ts +1 -0
  29. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js +5 -0
  30. package/dist/src/domain/model/link-features/dtos/linkFeatures.dto.js.map +1 -1
  31. package/dist/src/domain/model/link-features/entities/LinkFeatures.entity.d.ts +1 -0
  32. package/dist/src/domain/model/link-features/entities/LinkFeatures.entity.js.map +1 -1
  33. package/dist/src/domain/services/AmountService.js +3 -1
  34. package/dist/src/domain/services/AmountService.js.map +1 -1
  35. package/dist/src/domain/services/BitcoinExplorerService.d.ts +4 -0
  36. package/dist/src/domain/services/BitcoinExplorerService.js +14 -0
  37. package/dist/src/domain/services/BitcoinExplorerService.js.map +1 -0
  38. package/dist/src/domain/services/BlockchainExplorerService.js +3 -0
  39. package/dist/src/domain/services/BlockchainExplorerService.js.map +1 -1
  40. package/dist/tsconfig.tsbuildinfo +1 -1
  41. package/package.json +2 -2
  42. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.d.ts +0 -6
  43. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.js +0 -8
  44. package/dist/src/domain/model/wallet/entities/BTCPaymentAddress.js.map +0 -1
  45. /package/dist/src/domain/model/allowlist/dtos/{uploadAllowlistCSV.dto.d.ts → UploadAllowlistCSV.dto.d.ts} +0 -0
  46. /package/dist/src/domain/model/allowlist/dtos/{uploadAllowlistCSV.dto.js → UploadAllowlistCSV.dto.js} +0 -0
  47. /package/dist/src/domain/model/allowlist/dtos/{uploadAllowlistCSV.dto.js.map → UploadAllowlistCSV.dto.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class AffiliateDetails extends Entity {
3
+ bps: number;
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AffiliateDetails = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class AffiliateDetails extends entity_1.Entity {
6
+ }
7
+ exports.AffiliateDetails = AffiliateDetails;
8
+ //# sourceMappingURL=affiliateDetails.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"affiliateDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/affiliate/entities/affiliateDetails.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,gBAAiB,SAAQ,eAAM;CAE3C;AAFD,4CAEC"}
@@ -0,0 +1 @@
1
+ export * from './affiliateDetails.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./affiliateDetails.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/affiliate/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/affiliate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,3 @@
1
+ export declare class GetFloorPricesDto {
2
+ mintAddresses?: string[];
3
+ }
@@ -0,0 +1,24 @@
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.GetFloorPricesDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetFloorPricesDto {
15
+ }
16
+ __decorate([
17
+ (0, class_validator_1.IsArray)(),
18
+ (0, class_validator_1.ArrayMinSize)(1),
19
+ (0, class_validator_1.IsString)({ each: true }),
20
+ (0, class_validator_1.IsNotEmpty)({ each: true }),
21
+ __metadata("design:type", Array)
22
+ ], GetFloorPricesDto.prototype, "mintAddresses", void 0);
23
+ exports.GetFloorPricesDto = GetFloorPricesDto;
24
+ //# sourceMappingURL=getFloorPrices.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFloorPrices.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/helio-wallet/dtos/getFloorPrices.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAE9E,MAAa,iBAAiB;CAM7B;AALC;IAAC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACF;AAL3B,8CAMC"}
@@ -0,0 +1 @@
1
+ export * from './getFloorPrices.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./getFloorPrices.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/helio-wallet/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,5 @@
1
+ import { Entity } from '../../entity';
2
+ export declare class CollectionsFloorPriceAndNftAddress extends Entity {
3
+ floorPrice: bigint;
4
+ address: string;
5
+ }
@@ -0,0 +1,22 @@
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.CollectionsFloorPriceAndNftAddress = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const entity_1 = require("../../entity");
15
+ class CollectionsFloorPriceAndNftAddress extends entity_1.Entity {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Transform)(({ value }) => BigInt(value)),
19
+ __metadata("design:type", BigInt)
20
+ ], CollectionsFloorPriceAndNftAddress.prototype, "floorPrice", void 0);
21
+ exports.CollectionsFloorPriceAndNftAddress = CollectionsFloorPriceAndNftAddress;
22
+ //# sourceMappingURL=CollectionsFloorPriceAndNftAddress.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollectionsFloorPriceAndNftAddress.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/helio-wallet/entities/CollectionsFloorPriceAndNftAddress.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,yCAAsC;AAEtC,MAAa,kCAAmC,SAAQ,eAAM;CAK7D;AAJC;IAAC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;sEACrB;AAFrB,gFAKC"}
@@ -0,0 +1 @@
1
+ export * from './CollectionsFloorPriceAndNftAddress.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CollectionsFloorPriceAndNftAddress.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/helio-wallet/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA4D"}
@@ -0,0 +1,2 @@
1
+ export * from './dtos';
2
+ export * from './entities';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dtos"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/helio-wallet/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
@@ -81,4 +81,6 @@ export * from './prepare-helio-wallet-transaction';
81
81
  export * from './submit-helio-wallet-transaction';
82
82
  export * from './helio-wallet-tx';
83
83
  export * from './trading-view-details';
84
+ export * from './helio-wallet';
84
85
  export * from './balance';
86
+ export * from './affiliate';
@@ -97,5 +97,7 @@ __exportStar(require("./prepare-helio-wallet-transaction"), exports);
97
97
  __exportStar(require("./submit-helio-wallet-transaction"), exports);
98
98
  __exportStar(require("./helio-wallet-tx"), exports);
99
99
  __exportStar(require("./trading-view-details"), exports);
100
+ __exportStar(require("./helio-wallet"), exports);
100
101
  __exportStar(require("./balance"), exports);
102
+ __exportStar(require("./affiliate"), exports);
101
103
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,oDAAkC;AAClC,yDAAuC;AACvC,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;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CAA0B;AAC1B,8CAA4B"}
@@ -10,4 +10,5 @@ export declare class LinkFeaturesDto extends PaymentRequestFeaturesDto {
10
10
  showDiscountCode?: boolean;
11
11
  requireDiscordQuantityLimit?: boolean;
12
12
  requireAllowlist?: boolean;
13
+ allowAffiliate?: boolean;
13
14
  }
@@ -64,5 +64,10 @@ __decorate([
64
64
  (0, class_validator_1.IsOptional)(),
65
65
  __metadata("design:type", Boolean)
66
66
  ], LinkFeaturesDto.prototype, "requireAllowlist", void 0);
67
+ __decorate([
68
+ (0, class_validator_1.IsBoolean)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ __metadata("design:type", Boolean)
71
+ ], LinkFeaturesDto.prototype, "allowAffiliate", void 0);
67
72
  exports.LinkFeaturesDto = LinkFeaturesDto;
68
73
  //# sourceMappingURL=linkFeatures.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"linkFeatures.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/link-features/dtos/linkFeatures.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6EAA2E;AAE3E,MAAa,eAAgB,SAAQ,oDAAyB;CAwC7D;AAvCC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qDACU;AAEvB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qDACU;AAEvB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACe;AAE5B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACmB;AAEhC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uDACY;AAEzB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACS;AAEtB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;mDACS;AAErB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;yDACc;AAE3B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACyB;AAEtC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;yDACc;AAvC7B,0CAwCC"}
1
+ {"version":3,"file":"linkFeatures.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/link-features/dtos/linkFeatures.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AACxD,6EAA2E;AAE3E,MAAa,eAAgB,SAAQ,oDAAyB;CA4C7D;AA3CC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qDACU;AAEvB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qDACU;AAEvB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACe;AAE5B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;8DACmB;AAEhC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uDACY;AAEzB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oDACS;AAEtB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;mDACS;AAErB;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;yDACc;AAE3B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;oEACyB;AAEtC;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;yDACc;AAE3B;IAAC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;uDACY;AA3C3B,0CA4CC"}
@@ -7,4 +7,5 @@ export declare class LinkFeatures extends PaymentRequestFeatures {
7
7
  isEscrowed: boolean;
8
8
  requireDiscordQuantityLimit: boolean;
9
9
  requireAllowlist: boolean;
10
+ allowAffiliate: boolean;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"LinkFeatures.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/link-features/entities/LinkFeatures.entity.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AAExE,MAAa,YAAa,SAAQ,iDAAsB;CAcvD;AAdD,oCAcC"}
1
+ {"version":3,"file":"LinkFeatures.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/link-features/entities/LinkFeatures.entity.ts"],"names":[],"mappings":";;;AAAA,6EAAwE;AAExE,MAAa,YAAa,SAAQ,iDAAsB;CAgBvD;AAhBD,oCAgBC"}
@@ -11,7 +11,9 @@ class AmountService {
11
11
  return (0, bignumber_js_1.default)(String(minimalAmount)).dividedBy(String(units));
12
12
  }
13
13
  static minimalUnitsFromDecimal(decimalAmount, decimals) {
14
- return this.minimalUnitAmountFromDecimalString(String(decimalAmount), decimals);
14
+ return this.minimalUnitAmountFromDecimalString(String(decimalAmount instanceof bignumber_js_1.default
15
+ ? decimalAmount.toFixed()
16
+ : decimalAmount), decimals);
15
17
  }
16
18
  static minimalUnitAmountFromDecimalString(decimalAmount, currencyDecimals) {
17
19
  const [integerPart, fractionalPart] = decimalAmount.split('.');
@@ -1 +1 @@
1
- {"version":3,"file":"AmountService.js","sourceRoot":"","sources":["../../../../src/domain/services/AmountService.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,MAAa,aAAa;IAWxB,MAAM,CAAC,uBAAuB,CAC5B,aAA8B,EAC9B,QAAgB;QAEhB,MAAM,KAAK,GAAG,IAAI,CAAC,+BAA+B,CAAC,QAAQ,CAAC,CAAC;QAC7D,OAAO,IAAA,sBAAS,EAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAYD,MAAM,CAAC,uBAAuB,CAC5B,aAAiC,EACjC,QAAgB;QAEhB,OAAO,IAAI,CAAC,kCAAkC,CAC5C,MAAM,CAAC,aAAa,CAAC,EACrB,QAAQ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,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAYD,MAAM,CAAC,uBAAuB,CAC5B,aAAiC,EACjC,QAAgB;QAEhB,OAAO,IAAI,CAAC,kCAAkC,CAC5C,MAAM,CACJ,aAAa,YAAY,sBAAS;YAChC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE;YACzB,CAAC,CAAC,aAAa,CAClB,EACD,QAAQ,CACT,CAAC;IACJ,CAAC;IAEO,MAAM,CAAC,kCAAkC,CAC/C,aAAqB,EACrB,gBAAwB;QAExB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/D,MAAM,wBAAwB,GAAG,cAAc,EAAE,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;QAC5E,MAAM,sBAAsB,GAAG,wBAAwB,EAAE,MAAM,CAAC;QAChE,IAAI,sBAAsB,IAAI,IAAI,EAAE;YAClC,OAAO,CACL,MAAM,CAAC,aAAa,CAAC;gBACrB,IAAI,CAAC,+BAA+B,CAAC,gBAAgB,CAAC,CACvD,CAAC;SACH;QAID,MAAM,kCAAkC,GAAG,MAAM,CAC/C,WAAW,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAC7C,CAAC;QAEF,OAAO,CACL,IAAI,CAAC,+BAA+B,CAClC,gBAAgB,GAAG,sBAAsB,CAC1C,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAC/C,CAAC;IACJ,CAAC;;AApEH,sCA2EC;AALgB,6CAA+B,GAAG,CAC/C,QAAgB,EACR,EAAE;IACV,OAAO,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Environment } from '../constants';
2
+ export declare class BitcoinExplorerService {
3
+ static getTransactionUrl(transactionID: string, env: Environment): string;
4
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BitcoinExplorerService = void 0;
4
+ const constants_1 = require("../constants");
5
+ class BitcoinExplorerService {
6
+ static getTransactionUrl(transactionID, env) {
7
+ if (env === constants_1.Environment.PROD) {
8
+ return `https://www.blockchain.com/explorer/transactions/btc/${transactionID}`;
9
+ }
10
+ return `https://blockstream.info/testnet/tx/${transactionID}`;
11
+ }
12
+ }
13
+ exports.BitcoinExplorerService = BitcoinExplorerService;
14
+ //# sourceMappingURL=BitcoinExplorerService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BitcoinExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BitcoinExplorerService.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,MAAa,sBAAsB;IACjC,MAAM,CAAC,iBAAiB,CAAC,aAAqB,EAAE,GAAgB;QAC9D,IAAI,GAAG,KAAK,uBAAW,CAAC,IAAI,EAAE;YAC5B,OAAO,wDAAwD,aAAa,EAAE,CAAC;SAChF;QACD,OAAO,uCAAuC,aAAa,EAAE,CAAC;IAChE,CAAC;CACF;AAPD,wDAOC"}
@@ -5,6 +5,7 @@ const model_1 = require("../model");
5
5
  const EthereumExplorerService_1 = require("./EthereumExplorerService");
6
6
  const SolscanService_1 = require("./SolscanService");
7
7
  const PolygonExplorerService_1 = require("./PolygonExplorerService");
8
+ const BitcoinExplorerService_1 = require("./BitcoinExplorerService");
8
9
  class BlockchainExplorerService {
9
10
  static getExplorerUrl(blockchain, transactionId, network) {
10
11
  switch (blockchain) {
@@ -14,6 +15,8 @@ class BlockchainExplorerService {
14
15
  return PolygonExplorerService_1.PolygonExplorerService.getPolygonExplorerTransactionURL(transactionId, network);
15
16
  case model_1.BlockchainSymbol.SOL:
16
17
  return SolscanService_1.SolscanService.toSolScanLink(transactionId, network);
18
+ case model_1.BlockchainSymbol.BITCOIN:
19
+ return BitcoinExplorerService_1.BitcoinExplorerService.getTransactionUrl(transactionId, network);
17
20
  default:
18
21
  return undefined;
19
22
  }
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAElE,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,UAA4B,EAC5B,aAAqB,EACrB,OAAoB;QAEpB,QAAQ,UAAU,EAAE;YAClB,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE9D;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AA1BD,8DA0BC"}
1
+ {"version":3,"file":"BlockchainExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/BlockchainExplorerService.ts"],"names":[],"mappings":";;;AAAA,oCAA4C;AAE5C,uEAAoE;AACpE,qDAAkD;AAClD,qEAAkE;AAClE,qEAAkE;AAElE,MAAa,yBAAyB;IACpC,MAAM,CAAC,cAAc,CACnB,UAA4B,EAC5B,aAAqB,EACrB,OAAoB;QAEpB,QAAQ,UAAU,EAAE;YAClB,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,aAAa,EACb,OAAO,CACR,CAAC;YAEJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE9D,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,iBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YAE1E;gBACE,OAAO,SAAS,CAAC;SACpB;IACH,CAAC;CACF;AA7BD,8DA6BC"}