@heliofi/common 0.2.182-alpha.0 → 0.2.184-alpha.1

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 (48) hide show
  1. package/dist/src/domain/constants/platform.js.map +1 -1
  2. package/dist/src/domain/model/blockchain/constants/ConfirmTimeoutSec.d.ts +2 -1
  3. package/dist/src/domain/model/blockchain/constants/ConfirmTimeoutSec.js +1 -0
  4. package/dist/src/domain/model/blockchain/constants/ConfirmTimeoutSec.js.map +1 -1
  5. package/dist/src/domain/model/company/entities/CreateCompany.d.ts +2 -0
  6. package/dist/src/domain/model/company/entities/CreateCompany.js.map +1 -1
  7. package/dist/src/domain/model/deposit-tx/entities/DepositTx.d.ts +2 -0
  8. package/dist/src/domain/model/deposit-tx/entities/DepositTx.js +8 -0
  9. package/dist/src/domain/model/deposit-tx/entities/DepositTx.js.map +1 -1
  10. package/dist/src/domain/model/index.d.ts +1 -0
  11. package/dist/src/domain/model/index.js +1 -0
  12. package/dist/src/domain/model/index.js.map +1 -1
  13. package/dist/src/domain/model/privateRpc/dtos/updatePrivateRpc.dto.d.ts +1 -0
  14. package/dist/src/domain/model/privateRpc/dtos/updatePrivateRpc.dto.js +5 -0
  15. package/dist/src/domain/model/privateRpc/dtos/updatePrivateRpc.dto.js.map +1 -1
  16. package/dist/src/domain/model/report/entities/ReportItem.entity.d.ts +1 -0
  17. package/dist/src/domain/model/report/entities/ReportItem.entity.js +14 -0
  18. package/dist/src/domain/model/report/entities/ReportItem.entity.js.map +1 -1
  19. package/dist/src/domain/model/transaction/types/BaseTransaction.d.ts +2 -0
  20. package/dist/src/domain/model/tron-gasless/constants/index.d.ts +1 -0
  21. package/dist/src/domain/model/tron-gasless/constants/index.js +18 -0
  22. package/dist/src/domain/model/tron-gasless/constants/index.js.map +1 -0
  23. package/dist/src/domain/model/tron-gasless/constants/tronResourceType.enum.d.ts +4 -0
  24. package/dist/src/domain/model/tron-gasless/constants/tronResourceType.enum.js +9 -0
  25. package/dist/src/domain/model/tron-gasless/constants/tronResourceType.enum.js.map +1 -0
  26. package/dist/src/domain/model/tron-gasless/dtos/freezeBalance.dto.d.ts +5 -0
  27. package/dist/src/domain/model/tron-gasless/dtos/freezeBalance.dto.js +29 -0
  28. package/dist/src/domain/model/tron-gasless/dtos/freezeBalance.dto.js.map +1 -0
  29. package/dist/src/domain/model/tron-gasless/dtos/index.d.ts +1 -0
  30. package/dist/src/domain/model/tron-gasless/dtos/index.js +18 -0
  31. package/dist/src/domain/model/tron-gasless/dtos/index.js.map +1 -0
  32. package/dist/src/domain/model/tron-gasless/entities/freezeBalanceResponse.entity.d.ts +7 -0
  33. package/dist/src/domain/model/tron-gasless/entities/freezeBalanceResponse.entity.js +7 -0
  34. package/dist/src/domain/model/tron-gasless/entities/freezeBalanceResponse.entity.js.map +1 -0
  35. package/dist/src/domain/model/tron-gasless/entities/gasWalletResources.entity.d.ts +8 -0
  36. package/dist/src/domain/model/tron-gasless/entities/gasWalletResources.entity.js +7 -0
  37. package/dist/src/domain/model/tron-gasless/entities/gasWalletResources.entity.js.map +1 -0
  38. package/dist/src/domain/model/tron-gasless/entities/index.d.ts +2 -0
  39. package/dist/src/domain/model/tron-gasless/entities/index.js +19 -0
  40. package/dist/src/domain/model/tron-gasless/entities/index.js.map +1 -0
  41. package/dist/src/domain/model/tron-gasless/index.d.ts +3 -0
  42. package/dist/src/domain/model/tron-gasless/index.js +20 -0
  43. package/dist/src/domain/model/tron-gasless/index.js.map +1 -0
  44. package/dist/src/domain/services/TransactionCalculatorService.d.ts +1 -0
  45. package/dist/src/domain/services/TransactionCalculatorService.js +3 -0
  46. package/dist/src/domain/services/TransactionCalculatorService.js.map +1 -1
  47. package/dist/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../../src/domain/constants/platform.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,qCAAyB,CAAA;AAE3B,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAEM,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAY,EAAE;IACvD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ,CAAC,KAAK;YACjB,OAAO,QAAQ,CAAC,KAAK,CAAC;QACxB,KAAK,QAAQ,CAAC,UAAU;YACtB,OAAO,QAAQ,CAAC,UAAU,CAAC;QAG7B;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC;AAXW,QAAA,UAAU,cAWrB;AAEW,QAAA,oBAAoB,GAAG,YAAY,CAAC"}
1
+ {"version":3,"file":"platform.js","sourceRoot":"","sources":["../../../../src/domain/constants/platform.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAGX;AAHD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,qCAAyB,CAAA;AAC3B,CAAC,EAHW,QAAQ,wBAAR,QAAQ,QAGnB;AAEM,MAAM,UAAU,GAAG,CAAC,QAAgB,EAAY,EAAE;IACvD,QAAQ,QAAQ,EAAE,CAAC;QACjB,KAAK,QAAQ,CAAC,KAAK;YACjB,OAAO,QAAQ,CAAC,KAAK,CAAC;QACxB,KAAK,QAAQ,CAAC,UAAU;YACtB,OAAO,QAAQ,CAAC,UAAU,CAAC;QAC7B;YACE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC,CAAC;AATW,QAAA,UAAU,cASrB;AAEW,QAAA,oBAAoB,GAAG,YAAY,CAAC"}
@@ -3,5 +3,6 @@ export declare enum ConfirmTimeoutSec {
3
3
  ETH = 30,
4
4
  POLYGON = 30,
5
5
  EVM = 30,
6
- BITCOIN = 60
6
+ BITCOIN = 60,
7
+ TRON = 60
7
8
  }
@@ -8,5 +8,6 @@ var ConfirmTimeoutSec;
8
8
  ConfirmTimeoutSec[ConfirmTimeoutSec["POLYGON"] = 30] = "POLYGON";
9
9
  ConfirmTimeoutSec[ConfirmTimeoutSec["EVM"] = 30] = "EVM";
10
10
  ConfirmTimeoutSec[ConfirmTimeoutSec["BITCOIN"] = 60] = "BITCOIN";
11
+ ConfirmTimeoutSec[ConfirmTimeoutSec["TRON"] = 60] = "TRON";
11
12
  })(ConfirmTimeoutSec || (exports.ConfirmTimeoutSec = ConfirmTimeoutSec = {}));
12
13
  //# sourceMappingURL=ConfirmTimeoutSec.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmTimeoutSec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/constants/ConfirmTimeoutSec.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,wDAAQ,CAAA;IACR,wDAAQ,CAAA;IACR,gEAAY,CAAA;IACZ,wDAAQ,CAAA;IACR,gEAAY,CAAA;AACd,CAAC,EANW,iBAAiB,iCAAjB,iBAAiB,QAM5B"}
1
+ {"version":3,"file":"ConfirmTimeoutSec.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/constants/ConfirmTimeoutSec.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,wDAAQ,CAAA;IACR,wDAAQ,CAAA;IACR,gEAAY,CAAA;IACZ,wDAAQ,CAAA;IACR,gEAAY,CAAA;IACZ,0DAAS,CAAA;AACX,CAAC,EAPW,iBAAiB,iCAAjB,iBAAiB,QAO5B"}
@@ -8,4 +8,6 @@ export declare class CreateCompany {
8
8
  address?: string;
9
9
  phoneNumber?: string;
10
10
  platform?: Platform;
11
+ kycVerified?: boolean;
12
+ helioVerified?: boolean;
11
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CreateCompany.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/entities/CreateCompany.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;CAgBzB;AAhBD,sCAgBC"}
1
+ {"version":3,"file":"CreateCompany.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/entities/CreateCompany.ts"],"names":[],"mappings":";;;AAEA,MAAa,aAAa;CA4BzB;AA5BD,sCA4BC"}
@@ -9,6 +9,8 @@ export declare class DepositTx extends BaseDepositTx implements BaseTransaction
9
9
  deposit: DepositEnrichedEntity;
10
10
  depositCustomer: DepositCustomerEntity;
11
11
  incomingTransactions?: IncomingTransaction[];
12
+ netAmount?: bigint;
13
+ grossAmount?: bigint;
12
14
  paymentRequestCreatorId: string;
13
15
  paymentRequestName: string;
14
16
  paymentRequestCurrencySymbol: string;
@@ -34,4 +34,12 @@ __decorate([
34
34
  (0, class_transformer_1.Type)(() => incoming_transaction_1.IncomingTransaction),
35
35
  __metadata("design:type", Array)
36
36
  ], DepositTx.prototype, "incomingTransactions", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Transform)(({ value }) => (value ? BigInt(value) : undefined)),
39
+ __metadata("design:type", BigInt)
40
+ ], DepositTx.prototype, "netAmount", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Transform)(({ value }) => (value ? BigInt(value) : undefined)),
43
+ __metadata("design:type", BigInt)
44
+ ], DepositTx.prototype, "grossAmount", void 0);
37
45
  //# sourceMappingURL=DepositTx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/DepositTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,mDAAgD;AAChD,6DAAyD;AACzD,qDAGgC;AAGhC,qEAAiE;AAEjE,MAAa,SAAU,SAAQ,6BAAa;CAoB3C;AApBD,8BAoBC;AAlBC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;8BACtB,kCAAe;uCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACzB,gCAAqB;0CAAC;AAG/B;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACjB,gCAAqB;kDAAC;AAGvC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0CAAmB,CAAC;;uDACa"}
1
+ {"version":3,"file":"DepositTx.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit-tx/entities/DepositTx.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AACpD,mDAAgD;AAChD,6DAAyD;AACzD,qDAGgC;AAGhC,qEAAiE;AAEjE,MAAa,SAAU,SAAQ,6BAAa;CAwD3C;AAxDD,8BAwDC;AAtDC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAe,CAAC;8BACtB,kCAAe;uCAAC;AAGtB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACzB,gCAAqB;0CAAC;AAG/B;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,gCAAqB,CAAC;8BACjB,gCAAqB;kDAAC;AAGvC;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0CAAmB,CAAC;;uDACa;AAuB7C;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;;4CAC3C;AAanB;IADC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;;8CACzC"}
@@ -141,3 +141,4 @@ export * from './sweep-attempt';
141
141
  export * from './deposit-sweep-details';
142
142
  export * from './wallet-balance';
143
143
  export * from './incoming-transaction';
144
+ export * from './tron-gasless';
@@ -157,4 +157,5 @@ __exportStar(require("./sweep-attempt"), exports);
157
157
  __exportStar(require("./deposit-sweep-details"), exports);
158
158
  __exportStar(require("./wallet-balance"), exports);
159
159
  __exportStar(require("./incoming-transaction"), exports);
160
+ __exportStar(require("./tron-gasless"), exports);
160
161
  //# 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,mDAAiC;AACjC,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,2DAAyC;AACzC,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,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,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,6DAA2C;AAC3C,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC;AACpC,0CAAwB;AACxB,6DAA2C;AAC3C,mDAAiC;AACjC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,qDAAmC;AACnC,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,0DAAwC;AACxC,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,kDAAgC;AAChC,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,0DAAwC;AACxC,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,mDAAiC;AACjC,yDAAuC"}
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,mDAAiC;AACjC,yDAAuC;AACvC,oDAAkC;AAClC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,+CAA6B;AAC7B,2DAAyC;AACzC,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,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,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,6DAA2C;AAC3C,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC;AACpC,0CAAwB;AACxB,6DAA2C;AAC3C,mDAAiC;AACjC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,yDAAuC;AACvC,6DAA2C;AAC3C,4DAA0C;AAC1C,qDAAmC;AACnC,gDAA8B;AAC9B,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC;AACjC,0DAAwC;AACxC,gDAA8B;AAC9B,2CAAyB;AACzB,6CAA2B;AAC3B,+CAA6B;AAC7B,oDAAkC;AAClC,kDAAgC;AAChC,0CAAwB;AACxB,oDAAkC;AAClC,2CAAyB;AACzB,yDAAuC;AACvC,iDAA+B;AAC/B,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B;AAC7B,qDAAmC;AACnC,kDAAgC;AAChC,0DAAwC;AACxC,2CAAyB;AACzB,kDAAgC;AAChC,2CAAyB;AACzB,2DAAyC;AACzC,uDAAqC;AACrC,gDAA8B;AAC9B,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,mDAAiC;AACjC,yDAAuC;AACvC,iDAA+B"}
@@ -1,3 +1,4 @@
1
1
  export declare class UpdatePrivateRpcDto {
2
2
  rpc: string;
3
+ isEnabled?: boolean;
3
4
  }
@@ -19,4 +19,9 @@ __decorate([
19
19
  (0, class_validator_1.IsMongoId)(),
20
20
  __metadata("design:type", String)
21
21
  ], UpdatePrivateRpcDto.prototype, "rpc", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsBoolean)(),
25
+ __metadata("design:type", Boolean)
26
+ ], UpdatePrivateRpcDto.prototype, "isEnabled", void 0);
22
27
  //# sourceMappingURL=updatePrivateRpc.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updatePrivateRpc.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/privateRpc/dtos/updatePrivateRpc.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AAExD,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;gDACA"}
1
+ {"version":3,"file":"updatePrivateRpc.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/privateRpc/dtos/updatePrivateRpc.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+E;AAE/E,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AALC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;gDACA;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;sDACQ"}
@@ -3,6 +3,7 @@ import { Entity } from '../../entity';
3
3
  import { IntervalType } from '../../../constants';
4
4
  import { ExportTransactionType } from '../../transaction-meta';
5
5
  export declare class ReportItem extends Entity {
6
+ grossAmount?: bigint;
6
7
  id: string;
7
8
  txSignature: string;
8
9
  solScanLink: string;
@@ -1,8 +1,22 @@
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.ReportItem = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  const entity_1 = require("../../entity");
5
15
  class ReportItem extends entity_1.Entity {
6
16
  }
7
17
  exports.ReportItem = ReportItem;
18
+ __decorate([
19
+ (0, class_transformer_1.Transform)(({ value }) => value !== undefined && value !== null ? BigInt(value) : undefined),
20
+ __metadata("design:type", BigInt)
21
+ ], ReportItem.prototype, "grossAmount", void 0);
8
22
  //# sourceMappingURL=ReportItem.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReportItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/report/entities/ReportItem.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAItC,MAAa,UAAW,SAAQ,eAAM;CA8GrC;AA9GD,gCA8GC"}
1
+ {"version":3,"file":"ReportItem.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/report/entities/ReportItem.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAE9C,yCAAsC;AAItC,MAAa,UAAW,SAAQ,eAAM;CAmHrC;AAnHD,gCAmHC;AA/GC;IAHC,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CACvB,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAClE;;+CACoB"}
@@ -10,5 +10,7 @@ export interface BaseTransaction {
10
10
  paymentRequestCurrencySymbol: string;
11
11
  paymentRequestBlockchain: BlockchainSymbol;
12
12
  fee?: bigint;
13
+ netAmount?: bigint;
14
+ grossAmount?: bigint;
13
15
  createdAt: string;
14
16
  }
@@ -0,0 +1 @@
1
+ export * from './tronResourceType.enum';
@@ -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("./tronResourceType.enum"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -0,0 +1,4 @@
1
+ export declare enum TronResourceType {
2
+ BANDWIDTH = "BANDWIDTH",
3
+ ENERGY = "ENERGY"
4
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TronResourceType = void 0;
4
+ var TronResourceType;
5
+ (function (TronResourceType) {
6
+ TronResourceType["BANDWIDTH"] = "BANDWIDTH";
7
+ TronResourceType["ENERGY"] = "ENERGY";
8
+ })(TronResourceType || (exports.TronResourceType = TronResourceType = {}));
9
+ //# sourceMappingURL=tronResourceType.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tronResourceType.enum.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/constants/tronResourceType.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,qCAAiB,CAAA;AACnB,CAAC,EAHW,gBAAgB,gCAAhB,gBAAgB,QAG3B"}
@@ -0,0 +1,5 @@
1
+ import { TronResourceType } from '../constants/tronResourceType.enum';
2
+ export declare class FreezeBalanceDto {
3
+ amount: number;
4
+ resource?: TronResourceType;
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.FreezeBalanceDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const tronResourceType_enum_1 = require("../constants/tronResourceType.enum");
15
+ class FreezeBalanceDto {
16
+ }
17
+ exports.FreezeBalanceDto = FreezeBalanceDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsInt)(),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ (0, class_validator_1.Min)(1),
22
+ __metadata("design:type", Number)
23
+ ], FreezeBalanceDto.prototype, "amount", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEnum)(tronResourceType_enum_1.TronResourceType),
26
+ (0, class_validator_1.IsOptional)(),
27
+ __metadata("design:type", String)
28
+ ], FreezeBalanceDto.prototype, "resource", void 0);
29
+ //# sourceMappingURL=freezeBalance.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freezeBalance.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/dtos/freezeBalance.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAC7E,8EAAsE;AAEtE,MAAa,gBAAgB;CAS5B;AATD,4CASC;AALC;IAHC,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,IAAA,qBAAG,EAAC,CAAC,CAAC;;gDACQ;AAIf;IAFC,IAAA,wBAAM,EAAC,wCAAgB,CAAC;IACxB,IAAA,4BAAU,GAAE;;kDACe"}
@@ -0,0 +1 @@
1
+ export * from './freezeBalance.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("./freezeBalance.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,7 @@
1
+ import { TronResourceType } from '../constants/tronResourceType.enum';
2
+ export declare class FreezeBalanceResponse {
3
+ transactionId: string;
4
+ frozenAmount: number;
5
+ resource: TronResourceType;
6
+ gasWalletAddress: string;
7
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FreezeBalanceResponse = void 0;
4
+ class FreezeBalanceResponse {
5
+ }
6
+ exports.FreezeBalanceResponse = FreezeBalanceResponse;
7
+ //# sourceMappingURL=freezeBalanceResponse.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freezeBalanceResponse.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/entities/freezeBalanceResponse.entity.ts"],"names":[],"mappings":";;;AAEA,MAAa,qBAAqB;CAQjC;AARD,sDAQC"}
@@ -0,0 +1,8 @@
1
+ export declare class GasWalletResources {
2
+ gasWalletAddress: string;
3
+ bandwidth: number;
4
+ energy: number;
5
+ trxBalance: number;
6
+ frozenBalanceForBandwidth: number;
7
+ frozenBalanceForEnergy: number;
8
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GasWalletResources = void 0;
4
+ class GasWalletResources {
5
+ }
6
+ exports.GasWalletResources = GasWalletResources;
7
+ //# sourceMappingURL=gasWalletResources.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gasWalletResources.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/entities/gasWalletResources.entity.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAkB;CAY9B;AAZD,gDAYC"}
@@ -0,0 +1,2 @@
1
+ export * from './freezeBalanceResponse.entity';
2
+ export * from './gasWalletResources.entity';
@@ -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("./freezeBalanceResponse.entity"), exports);
18
+ __exportStar(require("./gasWalletResources.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/tron-gasless/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,8DAA4C"}
@@ -0,0 +1,3 @@
1
+ export * from './dtos';
2
+ export * from './entities';
3
+ export * from './constants';
@@ -0,0 +1,20 @@
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
+ __exportStar(require("./constants"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/tron-gasless/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B;AAC3B,8CAA4B"}
@@ -1,4 +1,5 @@
1
1
  import { BaseTransactionMeta } from '../model';
2
2
  export declare class TransactionCalculatorService {
3
3
  static calculateTotalAmount(meta: Partial<Pick<BaseTransactionMeta, 'amount' | 'remainingAccounts'>>): bigint;
4
+ static calculateGrossAmount(meta: Partial<Pick<BaseTransactionMeta, 'amount' | 'remainingAccounts'>>, fee: bigint): bigint;
4
5
  }
@@ -6,6 +6,9 @@ class TransactionCalculatorService {
6
6
  return (BigInt(meta.amount ?? 1n) +
7
7
  (meta.remainingAccounts?.reduce((acc, curr) => BigInt(curr.amount) + acc, 0n) ?? 0n));
8
8
  }
9
+ static calculateGrossAmount(meta, fee) {
10
+ return TransactionCalculatorService.calculateTotalAmount(meta) + fee;
11
+ }
9
12
  }
10
13
  exports.TransactionCalculatorService = TransactionCalculatorService;
11
14
  //# sourceMappingURL=TransactionCalculatorService.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionCalculatorService.js","sourceRoot":"","sources":["../../../../src/domain/services/TransactionCalculatorService.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;IACvC,MAAM,CAAC,oBAAoB,CACzB,IAAwE;QAExE,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;YACzB,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAC7B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EACxC,EAAE,CACH,IAAI,EAAE,CAAC,CACT,CAAC;IACJ,CAAC;CACF;AAZD,oEAYC"}
1
+ {"version":3,"file":"TransactionCalculatorService.js","sourceRoot":"","sources":["../../../../src/domain/services/TransactionCalculatorService.ts"],"names":[],"mappings":";;;AAEA,MAAa,4BAA4B;IACvC,MAAM,CAAC,oBAAoB,CACzB,IAAwE;QAExE,OAAO,CACL,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,CAAC;YACzB,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAC7B,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,EACxC,EAAE,CACH,IAAI,EAAE,CAAC,CACT,CAAC;IACJ,CAAC;IAMD,MAAM,CAAC,oBAAoB,CACzB,IAAwE,EACxE,GAAW;QAEX,OAAO,4BAA4B,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC;IACvE,CAAC;CACF;AAvBD,oEAuBC"}