@ercworldio/blockchain-shared 1.0.3-dev.4-PROJ-1296.9 → 1.0.3-dev.5

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 (93) hide show
  1. package/build/chains/networks_dev.json +12 -12
  2. package/build/chains/networks_prod-sh.json +4 -40
  3. package/build/chains/networks_prod-yb.json +4 -40
  4. package/build/contracts/Escrow.d.ts +5 -66
  5. package/build/contracts/Escrow.d.ts.map +1 -1
  6. package/build/contracts/Escrow.js +2 -93
  7. package/build/contracts/EscrowErrors.d.ts +1 -85
  8. package/build/contracts/EscrowErrors.d.ts.map +1 -1
  9. package/build/contracts/EscrowErrors.js +14 -59
  10. package/build/contracts/artifacts/Escrow.json +12 -0
  11. package/build/contracts/contract-events/AccessControlEvents.d.ts +2 -12
  12. package/build/contracts/contract-events/AccessControlEvents.d.ts.map +1 -1
  13. package/build/contracts/contract-events/AccessControlEvents.js +5 -29
  14. package/build/contracts/contract-events/EscrowEvents.d.ts +2 -134
  15. package/build/contracts/contract-events/EscrowEvents.d.ts.map +1 -1
  16. package/build/contracts/contract-events/EscrowEvents.js +17 -67
  17. package/build/contracts/contract-events/types/events.d.ts +1 -35
  18. package/build/contracts/contract-events/types/events.d.ts.map +1 -1
  19. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +4 -1
  20. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
  21. package/build/contracts/typechain-types/contracts/lib/Events.d.ts +4 -1
  22. package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -1
  23. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts +1 -1
  24. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.js +1 -1
  25. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +6 -1
  26. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
  27. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +7 -1
  28. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +6 -1
  29. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -1
  30. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +7 -1
  31. package/build/contracts/types/escrow.d.ts +1 -13
  32. package/build/contracts/types/escrow.d.ts.map +1 -1
  33. package/build/contracts/types/escrow.js +0 -4
  34. package/build/entities/AdminOperationThresholds.d.ts +1 -0
  35. package/build/entities/AdminOperationThresholds.d.ts.map +1 -1
  36. package/build/entities/AdminOperationThresholds.js +5 -1
  37. package/build/entities/ClaimJob.d.ts +0 -1
  38. package/build/entities/ClaimJob.d.ts.map +1 -1
  39. package/build/entities/ClaimJob.js +0 -4
  40. package/build/entities/EscrowRoles.js +1 -1
  41. package/build/entities/GlobalTimelock.d.ts +1 -0
  42. package/build/entities/GlobalTimelock.d.ts.map +1 -1
  43. package/build/entities/GlobalTimelock.js +5 -1
  44. package/build/entities/GranularTimelock .d.ts +1 -0
  45. package/build/entities/GranularTimelock .d.ts.map +1 -1
  46. package/build/entities/GranularTimelock .js +4 -0
  47. package/build/entities/RoleHash.js +1 -1
  48. package/build/entities/TokenExecutionThresholds.d.ts +1 -0
  49. package/build/entities/TokenExecutionThresholds.d.ts.map +1 -1
  50. package/build/entities/TokenExecutionThresholds.js +5 -1
  51. package/build/errors/errors.d.ts +0 -30
  52. package/build/errors/errors.d.ts.map +1 -1
  53. package/build/errors/errors.js +2 -64
  54. package/build/index.d.ts +9 -6
  55. package/build/index.d.ts.map +1 -1
  56. package/build/index.js +11 -22
  57. package/build/interfaces.d.ts +2 -2
  58. package/build/interfaces.d.ts.map +1 -1
  59. package/build/services/AlchemyService.d.ts +0 -1
  60. package/build/services/AlchemyService.d.ts.map +1 -1
  61. package/build/services/AlchemyService.js +2 -8
  62. package/build/services/AlchemyWebhooks.d.ts.map +1 -1
  63. package/build/services/AlchemyWebhooks.js +29 -36
  64. package/build/services/AzureEventHubHandler.d.ts.map +1 -1
  65. package/build/services/AzureEventHubHandler.js +5 -17
  66. package/build/services/ClaimJobService.d.ts +2 -5
  67. package/build/services/ClaimJobService.d.ts.map +1 -1
  68. package/build/services/ClaimJobService.js +24 -135
  69. package/build/services/SweepJobService.d.ts +3 -3
  70. package/build/services/SweepJobService.d.ts.map +1 -1
  71. package/build/services/SweepJobService.js +12 -7
  72. package/build/services/db/roles/ContractRoles.d.ts +2 -2
  73. package/build/services/db/roles/ContractRoles.d.ts.map +1 -1
  74. package/build/services/db/roles/ContractRoles.js +12 -18
  75. package/build/services/types/azure_event_hub_handler.d.ts +1 -9
  76. package/build/services/types/azure_event_hub_handler.d.ts.map +1 -1
  77. package/build/services/types/azure_event_hub_handler.js +0 -8
  78. package/build/services/types/claim.d.ts +1 -17
  79. package/build/services/types/claim.d.ts.map +1 -1
  80. package/build/services/types/claim_job_service.d.ts +1 -9
  81. package/build/services/types/claim_job_service.d.ts.map +1 -1
  82. package/build/services/types/index.d.ts +0 -1
  83. package/build/services/types/index.d.ts.map +1 -1
  84. package/build/services/types/index.js +0 -1
  85. package/build/services/utils/alchemy.d.ts.map +1 -1
  86. package/build/services/utils/alchemy.js +1 -6
  87. package/build/utils/AsyncTTLCache.d.ts +0 -2
  88. package/build/utils/AsyncTTLCache.d.ts.map +1 -1
  89. package/build/utils/AsyncTTLCache.js +2 -18
  90. package/build/utils/custodial.d.ts +0 -8
  91. package/build/utils/custodial.d.ts.map +1 -1
  92. package/build/utils/custodial.js +20 -34
  93. package/package.json +3 -6
@@ -19,25 +19,9 @@ export interface WithdrawRequestDetails {
19
19
  blockchain: BlockchainType;
20
20
  receiver: string;
21
21
  paymentType: PaymentType;
22
- destinationBlockchain?: BLOCKCHAINS.EVM | BLOCKCHAINS.SOLANA | BLOCKCHAINS.TRON;
22
+ destinationBlockchain?: BLOCKCHAINS.EVM | BLOCKCHAINS.SOLANA;
23
23
  destinationChainId?: number;
24
24
  destinationToken?: string;
25
- sigsExecutiveRequired?: number;
26
- sigsManagerRequired?: number;
27
- multisigSignatures: MultisigSignatureEntry[];
28
- receiverAddress: string;
29
- timeLockSeconds: number;
30
- }
31
- export interface MultisigSignatureEntry {
32
- name: string;
33
- signerAddress: string;
34
- contractAddress: string;
35
- createdAt: string;
36
- updatedAt: string;
37
- operationType: number;
38
- v?: number;
39
- r?: string;
40
- s?: string;
41
25
  }
42
26
  export interface ClaimJobSuccessResult extends ClaimJobs {
43
27
  tx_hash: string;
@@ -1 +1 @@
1
- {"version":3,"file":"claim.d.ts","sourceRoot":"","sources":["../../../src/services/types/claim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEhD,MAAM,WAAW,mBAAmB;IAChC,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC;CAC7B;AACD,MAAM,MAAM,aAAa,GACnB,SAAS,GACT,YAAY,GACZ,UAAU,GACV,UAAU,GACV,UAAU,GACV,MAAM,GACN,aAAa,CAAC;AAEpB,MAAM,MAAM,SAAS,GACf,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,QAAQ,CAAC;AAEf,MAAM,WAAW,sBAAsB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IAGd,UAAU,EAAE,cAAc,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB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,MAAM,CAAC;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,6BAA6B,EAAE,MAAM,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0BAA0B,EAAE,MAAM,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,IAAI,CAAC;CACrB"}
@@ -1,6 +1,5 @@
1
- import { ClaimJobs } from "../../entities";
2
1
  import { BlockchainType, ChainId } from "../../interfaces";
3
- import { JobStatus, MultisigSignatureEntry, PaymentType } from "./claim";
2
+ import { JobStatus, PaymentType } from "./claim";
4
3
  export interface MarkCompletePayload {
5
4
  request_id: number;
6
5
  from: string;
@@ -19,7 +18,6 @@ export interface CreateClaimJobsPayload {
19
18
  amount: bigint;
20
19
  token: string;
21
20
  decimals: number;
22
- has_timelock: boolean;
23
21
  }
24
22
  export interface BatchUpdateStatusPayload {
25
23
  request_id: number;
@@ -53,10 +51,4 @@ export interface ClaimJobLockMetadata {
53
51
  lock_owner: string;
54
52
  lock_reason: string;
55
53
  }
56
- export interface ClaimJobResult extends ClaimJobs {
57
- multisig_signatures: MultisigSignatureEntry[];
58
- commitment_hash: string;
59
- execute_at: Date;
60
- }
61
- export type ClaimJobWithDetails = ClaimJobResult;
62
54
  //# sourceMappingURL=claim_job_service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"claim_job_service.d.ts","sourceRoot":"","sources":["../../../src/services/types/claim_job_service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEzE,MAAM,WAAW,mBAAmB;IAChC,UAA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CACpB;AAED,MAAM,WAAW,wBAAwB;IACrC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,SAAS,CAAC,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,CAAC,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IAC/B,UAAU,CAAC,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,WAAW,yBAAyB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACvB"}
@@ -14,5 +14,4 @@ export * from "./balance_service";
14
14
  export * from "./chain_manager";
15
15
  export * from './quicknode';
16
16
  export * from "./bo_withdrawal";
17
- export * from "./db/index";
18
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -30,4 +30,3 @@ __exportStar(require("./balance_service"), exports);
30
30
  __exportStar(require("./chain_manager"), exports);
31
31
  __exportStar(require("./quicknode"), exports);
32
32
  __exportStar(require("./bo_withdrawal"), exports);
33
- __exportStar(require("./db/index"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"alchemy.d.ts","sourceRoot":"","sources":["../../../src/services/utils/alchemy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,eAAO,MAAM,mBAAmB,GAAI,cAAc,qBAAqB,0CAgDtE,CAAA;AAGD,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,KAAG,qBAsDvD,CAAA;AAGD,eAAO,MAAM,oBAAoB,GAAI,SAAS,qBAAqB,KAAG,OAsDrE,CAAA"}
1
+ {"version":3,"file":"alchemy.d.ts","sourceRoot":"","sources":["../../../src/services/utils/alchemy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAGzD,eAAO,MAAM,mBAAmB,GAAI,cAAc,qBAAqB,0CA0CtE,CAAA;AAGD,eAAO,MAAM,sBAAsB,GAAI,OAAO,OAAO,KAAG,qBAsDvD,CAAA;AAGD,eAAO,MAAM,oBAAoB,GAAI,SAAS,qBAAqB,KAAG,OAsDrE,CAAA"}
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.get_alchemy_chain_id = exports.get_alchemy_chain_name = exports.get_blockchain_type = void 0;
4
4
  // CONFIG Configuration: New alchemy network
5
5
  const get_blockchain_type = (network_name) => {
6
- console.log(`Getting blockchain type for ${network_name}`);
7
6
  const evm_networks = [
8
7
  "ETH_MAINNET",
9
8
  "MATIC_MAINNET",
@@ -28,20 +27,16 @@ const get_blockchain_type = (network_name) => {
28
27
  ];
29
28
  let evm_match = evm_networks.some(network => network_name.includes(network));
30
29
  if (evm_match) {
31
- console.log(`match evm`);
32
30
  return "evm";
33
31
  }
34
32
  let solana_match = solana_networks.some(network => network_name.includes(network));
35
33
  if (solana_match) {
36
- console.log(`match solana`);
37
34
  return "solana";
38
35
  }
39
- let tron_match = tron_networks.some(network => network_name.includes(network));
36
+ let tron_match = solana_networks.some(network => network_name.includes(network));
40
37
  if (tron_match) {
41
- console.log(`match tron`);
42
38
  return "tron";
43
39
  }
44
- console.log(`no match`);
45
40
  //
46
41
  // TODO: ADD btc here
47
42
  };
@@ -7,8 +7,6 @@ declare class AsyncTTLCache {
7
7
  static getInstance(): AsyncTTLCache;
8
8
  static create(stale_time_in_ms: number): AsyncTTLCache;
9
9
  private resolve_inflight;
10
- invalidate(key: string): void;
11
- invalidate_all(): void;
12
10
  get_value<K, V>(key: string, data: K, fetch_task: (data: K) => Promise<V>): Promise<any>;
13
11
  }
14
12
  export default AsyncTTLCache;
@@ -1 +1 @@
1
- {"version":3,"file":"AsyncTTLCache.d.ts","sourceRoot":"","sources":["../../src/utils/AsyncTTLCache.ts"],"names":[],"mappings":"AAOA,cAAM,aAAa;IACf,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAwC;IAEjD,aAAa,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,KAAK,CAAmB;IAEhC,OAAO;IAKP,MAAM,CAAC,WAAW;IAQlB,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,aAAa;YAQxC,gBAAgB;IAUvB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAW7B,cAAc,IAAI,IAAI;IAKhB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;CAmCzF;AAED,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"AsyncTTLCache.d.ts","sourceRoot":"","sources":["../../src/utils/AsyncTTLCache.ts"],"names":[],"mappings":"AAOA,cAAM,aAAa;IACf,MAAM,CAAC,QAAQ,EAAE,aAAa,CAAC;IAC/B,OAAO,CAAC,QAAQ,CAAwC;IAEjD,aAAa,EAAE,MAAM,CAAC;IAE7B,OAAO,CAAC,KAAK,CAAmB;IAEhC,OAAO;IAKP,MAAM,CAAC,WAAW;IAQlB,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,GAAG,aAAa;YAQxC,gBAAgB;IAUjB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC;CAiCzF;AAED,eAAe,aAAa,CAAC"}
@@ -39,29 +39,13 @@ class AsyncTTLCache {
39
39
  return resolved;
40
40
  });
41
41
  }
42
- invalidate(key) {
43
- console.log(`Invalidating key ${key}`);
44
- const existing = this.cache.get(key);
45
- console.log(`Existing record found : `, existing);
46
- this.cache.delete(key);
47
- this.inflight.delete(key);
48
- console.log(`Deeleted cache for key ${key}`);
49
- const afterDelete = this.cache.get(key);
50
- console.log(`After delete key: ${key}`, afterDelete);
51
- }
52
- invalidate_all() {
53
- this.cache.clear();
54
- this.inflight.clear();
55
- }
56
42
  get_value(key, data, fetch_task) {
57
43
  return __awaiter(this, void 0, void 0, function* () {
58
- console.log(`Getting value from AsynTTLCache for key ${key}`);
59
44
  let existing_entry = this.cache.get(key);
60
- console.log(`Existing entry:`, existing_entry);
61
45
  let now = new Date().getTime();
62
46
  // Return cached value
63
47
  if (existing_entry && now - existing_entry.last_update <= this.stale_time_ms) {
64
- console.log(`AsyncTTLCache: Hitting cache... KEY: ${key}, Value:`, existing_entry);
48
+ console.log(`AsyncTTLCache: Hitting cache... Value:`, existing_entry.value);
65
49
  return existing_entry.value;
66
50
  }
67
51
  if (!existing_entry || now - existing_entry.last_update > this.stale_time_ms) {
@@ -80,7 +64,7 @@ class AsyncTTLCache {
80
64
  this.inflight.delete(key);
81
65
  }
82
66
  }
83
- console.log(`AsyncTTLCache: Hitting cache... Value:`, existing_entry);
67
+ console.log(`AsyncTTLCache: Hitting cache... Value:`, existing_entry.value);
84
68
  return existing_entry.value;
85
69
  });
86
70
  }
@@ -14,13 +14,6 @@ export interface EstimateEscrowBatchWithdrawPayload {
14
14
  receiver: string;
15
15
  requestId: number;
16
16
  }
17
- export interface EstimateEscrowExecuteWithdrawalPayload {
18
- amount: bigint;
19
- requestId: number;
20
- tokenAddress: string;
21
- receiverAddress: string;
22
- executeAt: number;
23
- }
24
17
  export declare const needs_approval_and_funding: (blockchain: BlockchainType, chainId: ChainId, token: string, parentIndex: number, childIndex: number, spender: string, dbPool: IDatabasePool, config: IConfig) => Promise<{
25
18
  status: boolean;
26
19
  needs_approval: boolean;
@@ -34,7 +27,6 @@ export declare const getWalletBalance: (blockchain: BlockchainType, chainId: Cha
34
27
  balance: bigint;
35
28
  decimals: bigint;
36
29
  }>;
37
- export declare const estimate_execute_withdrawal: (chain_id: ChainId, payload: EstimateEscrowExecuteWithdrawalPayload, caller: string, config: IConfig) => Promise<bigint>;
38
30
  export declare const estimate_escrow_method_call_cost: (chain_id: ChainId, payloads: EstimateEscrowBatchWithdrawPayload[], dbPool: IDatabasePool, config: IConfig) => Promise<bigint>;
39
31
  export declare const estimateGas: (provider: ethers.Provider, tokenAddress: string, spenderAddress: string | null, amount: bigint, fromAddress: string, chainId: number, transactionType: TransactionType, isMockTransfer?: boolean) => Promise<bigint>;
40
32
  //# sourceMappingURL=custodial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custodial.d.ts","sourceRoot":"","sources":["../../src/utils/custodial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,MAAM,EAAwC,MAAM,QAAQ,CAAC;AAC7G,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAYnF,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAMvD,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,CAAC;AACpE,MAAM,WAAW,iBAAiB;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,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AS,OAAO,EAAE,SAAS,MAAM,EAAE,OAAO,MAAM,EAAE,QAAQ,aAAa,EAAE,QAAQ,OAAO;;;EAkG1J,CAAA;AAED,eAAO,MAAM,gCAAgC,GAAU,UAAU,OAAO,EAAE,UAAU,kCAAkC,EAAE,EAAE,QAAQ,aAAa,EAAE,QAAQ,OAAO,oBA2C/J,CAAA;AAED,eAAO,MAAM,WAAW,GACpB,UAAU,MAAM,CAAC,QAAQ,EACzB,cAAc,MAAM,EACpB,gBAAgB,MAAM,GAAG,IAAI,EAC7B,QAAQ,MAAM,EACd,aAAa,MAAM,EACnB,SAAS,MAAM,EACf,iBAAiB,eAAe,EAChC,wBAAsB,oBA8DzB,CAAA"}
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.estimateGas = exports.estimate_escrow_method_call_cost = exports.estimate_execute_withdrawal = exports.getWalletBalance = exports.approve_if_not_approved = exports.needs_approval_and_funding = void 0;
15
+ exports.estimateGas = exports.estimate_escrow_method_call_cost = exports.getWalletBalance = exports.approve_if_not_approved = exports.needs_approval_and_funding = void 0;
16
16
  const ethers_1 = require("ethers");
17
17
  const ERC20Mock_json_1 = __importDefault(require("../contracts/artifacts/ERC20Mock.json"));
18
18
  const Escrow_json_1 = __importDefault(require("../contracts/artifacts/Escrow.json"));
@@ -118,18 +118,25 @@ const getWalletBalance = (blockchain, chainId, address, token, dbPool, config) =
118
118
  }
119
119
  // Handle SPL token balances
120
120
  try {
121
+ // const mintPk = new PublicKey(token);
122
+ // const mintadd = mintPk.toString();
123
+ // // const mint = await getMint(connection, mintPk);
124
+ // const parsedTokenAccounts = await retryWithExponentialBackoff(() => connection.getParsedTokenAccountsByOwner(ownerPk, { programId: TOKEN_PROGRAM_ID }));
125
+ // const targetAccount = parsedTokenAccounts.value.find(a => new PublicKey(a.account.data.parsed.info.mint).toString() === mintPk.toString());
126
+ // if (!targetAccount) throw new Error("Token account not found");
127
+ // const tokenInfo = await connection.getAccountInfo(targetAccount.pubkey);
128
+ // // const parsedInfo = await connection.getParsedAccountInfo(targetAccount.pubkey);
129
+ // const sol_balance = tokenInfo?.lamports;
130
+ // const balance = (targetAccount.account.data as ParsedAccountData).parsed.info.tokenAmount.amount as string;
131
+ // const decimals = (targetAccount.account.data as ParsedAccountData).parsed.info.tokenAmount.decimals as number;
121
132
  const mintPk = new web3_js_1.PublicKey(token);
122
- const mintadd = mintPk.toString();
123
- // const mint = await getMint(connection, mintPk);
124
- const parsedTokenAccounts = yield (0, Utility_1.retryWithExponentialBackoff)(() => connection.getParsedTokenAccountsByOwner(ownerPk, { programId: spl_token_1.TOKEN_PROGRAM_ID }));
125
- const targetAccount = parsedTokenAccounts.value.find(a => new web3_js_1.PublicKey(a.account.data.parsed.info.mint).toString() === mintPk.toString());
126
- if (!targetAccount)
127
- throw new Error("Token account not found");
128
- const tokenInfo = yield connection.getAccountInfo(targetAccount.pubkey);
129
- // const parsedInfo = await connection.getParsedAccountInfo(targetAccount.pubkey);
130
- const sol_balance = tokenInfo === null || tokenInfo === void 0 ? void 0 : tokenInfo.lamports;
131
- const balance = targetAccount.account.data.parsed.info.tokenAmount.amount;
132
- const decimals = targetAccount.account.data.parsed.info.tokenAmount.decimals;
133
+ const ata = (0, spl_token_1.getAssociatedTokenAddressSync)(mintPk, ownerPk);
134
+ const tokenAccountInfo = yield (0, Utility_1.retryWithExponentialBackoff)(() => connection.getParsedAccountInfo(ata));
135
+ if (!tokenAccountInfo.value)
136
+ return { balance: BigInt(0), decimals: BigInt(0) };
137
+ const parsed = tokenAccountInfo.value.data.parsed;
138
+ const balance = parsed.info.tokenAmount.amount;
139
+ const decimals = parsed.info.tokenAmount.decimals;
133
140
  return { balance: BigInt(balance), decimals: BigInt(decimals) };
134
141
  }
135
142
  catch (error) {
@@ -172,28 +179,6 @@ const getWalletBalance = (blockchain, chainId, address, token, dbPool, config) =
172
179
  }
173
180
  });
174
181
  exports.getWalletBalance = getWalletBalance;
175
- /// Estimate gas for withdrawing scheduled transaction (withdraw with timelock)
176
- const estimate_execute_withdrawal = (chain_id, payload, caller, config) => __awaiter(void 0, void 0, void 0, function* () {
177
- const chain_manager = ChainManager_1.default.getInstance(config);
178
- const escrow_config = chain_manager.getEscrowContractForChain(parseInt(chain_id));
179
- const provider = ProviderManager_1.default.getInstance(config).getNewProvider(chain_id).provider;
180
- const Escrow = new ethers_1.ethers.Contract(escrow_config.addresses[0], Escrow_json_1.default, provider);
181
- const data = Escrow.interface.encodeFunctionData('executeWithdrawal', [
182
- payload.amount, payload.requestId, payload.tokenAddress, payload.receiverAddress, payload.executeAt
183
- ]);
184
- const txDetails = {
185
- to: Escrow.target,
186
- data: data,
187
- from: caller
188
- };
189
- const [gasUnits, gasPrice] = yield Promise.all([
190
- (0, Utility_1.retryWithExponentialBackoff)(() => __awaiter(void 0, void 0, void 0, function* () { return yield provider.estimateGas(txDetails); })),
191
- (0, Utility_1.retryWithExponentialBackoff)(() => __awaiter(void 0, void 0, void 0, function* () { return yield provider.getFeeData(); }))
192
- ]);
193
- const totalFee = gasPrice.maxFeePerGas ? gasUnits * gasPrice.maxFeePerGas : gasUnits * (gasPrice.gasPrice || BigInt(0));
194
- return totalFee;
195
- });
196
- exports.estimate_execute_withdrawal = estimate_execute_withdrawal;
197
182
  const estimate_escrow_method_call_cost = (chain_id, payloads, dbPool, config) => __awaiter(void 0, void 0, void 0, function* () {
198
183
  const errors = new TransactionsErrors_1.default();
199
184
  if (payloads.length === 0)
@@ -222,6 +207,7 @@ const estimate_escrow_method_call_cost = (chain_id, payloads, dbPool, config) =>
222
207
  chainId: chain_id.toString(),
223
208
  value: 0
224
209
  };
210
+ console.log(`BATCh WITHDRAW DAT: `, { batch_payloads, data, txDetails });
225
211
  // Estimate gas units and get current gas price
226
212
  const [gasUnits, gasPrice] = yield Promise.all([
227
213
  (0, Utility_1.retryWithExponentialBackoff)(() => __awaiter(void 0, void 0, void 0, function* () { return yield provider.estimateGas(txDetails); })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ercworldio/blockchain-shared",
3
- "version": "1.0.3-dev.4-PROJ-1296.9",
3
+ "version": "1.0.3-dev.5",
4
4
  "description": "Shared library for blockchain projects",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -71,7 +71,7 @@
71
71
  "@solana/buffer-layout-utils": "^0.2.0",
72
72
  "@solana/spl-token": "^0.4.13",
73
73
  "@solana/web3.js": "^1.98.2",
74
- "axios": "^1.16.1",
74
+ "axios": "^1.4.0",
75
75
  "bech32": "^2.0.0",
76
76
  "bip39": "^3.1.0",
77
77
  "borsh": "^2.0.0",
@@ -84,7 +84,7 @@
84
84
  "redis": "^5.8.2",
85
85
  "reflect-metadata": "^0.2.2",
86
86
  "secp256k1": "^5.0.1",
87
- "tronweb": "^6.3.0",
87
+ "tronweb": "^6.1.1",
88
88
  "tweetnacl": "^1.0.3",
89
89
  "typeorm": "^0.3.24",
90
90
  "uuid": "^8.0.0"
@@ -92,9 +92,6 @@
92
92
  "peerDependencies": {
93
93
  "pg": "^8.16.0"
94
94
  },
95
- "overrides": {
96
- "axios": "^1.16.1"
97
- },
98
95
  "devDependencies": {
99
96
  "@types/bech32": "^1.1.2",
100
97
  "@types/bn.js": "^5.2.0",