apenft-js-tron 2.1.1 → 2.1.2-beta.2

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.
@@ -283,18 +283,23 @@ var ContractSchemas = /** @class */ (function (_super) {
283
283
  latestBlockNumber = latestBlock.block_header.raw_data.number;
284
284
  txBlockNumber = output.blockNumber;
285
285
  confirmationNumber = latestBlockNumber - txBlockNumber;
286
- // if(output.receipt && output.receipt.result === 'SUCCESS'){
287
- if (confirmationNumber > 4) {
286
+ // // if(output.receipt && output.receipt.result === 'SUCCESS'){
287
+ // if (confirmationNumber > 4) {
288
+ // defer.eventEmitter.emit('confirmation', confirmationNumber, output, signedTransaction)
289
+ // if ('contract_address' in output) {
290
+ // output['contract_address'] = this.web3.address.fromHex(output['contract_address'])
291
+ // return defer.resolve(output)
292
+ // }
293
+ // }
294
+ // defer.eventEmitter.emit('confirming', confirmationNumber, output, signedTransaction)
295
+ // setTimeout(() => {
296
+ // checkResult(index + 1)
297
+ // }, 2000)
298
+ // // }
299
+ if (output.receipt && output.receipt.result === 'SUCCESS') {
288
300
  defer.eventEmitter.emit('confirmation', confirmationNumber, output, signedTransaction);
289
- if ('contract_address' in output) {
290
- output['contract_address'] = this.web3.address.fromHex(output['contract_address']);
291
- return [2 /*return*/, defer.resolve(output)];
292
- }
301
+ defer.resolve({ txHash: signedTransaction.txID, txSend: defer.eventEmitter });
293
302
  }
294
- defer.eventEmitter.emit('confirming', confirmationNumber, output, signedTransaction);
295
- setTimeout(function () {
296
- checkResult(index + 1);
297
- }, 2000);
298
303
  return [2 /*return*/];
299
304
  }
300
305
  });
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "apenft-js-tron",
3
- "version": "2.1.1",
3
+ "version": "2.1.2-beta.2",
4
4
  "description": "Javascript SDK for the APENFT ",
5
5
  "main": "dist/index.js",
6
6
  "author": "Project APENFT Developers",
7
7
  "scripts": {
8
- "dev": "tsc -w -p tsconfig.dev.json",
8
+ "clean": "rm -rf dist",
9
+ "dev": "npm run clean && tsc -w -p tsconfig.dev.json",
9
10
  "eslint": "eslint --fix src --ext .ts --max-warnings=0",
10
11
  "build": "tsc",
11
12
  "webpack": "webpack --mode production",
package/tsconfig.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "include": ["**/*.ts"],
3
3
  "exclude": [
4
- "node_modules"
4
+ "node_modules",
5
+ "dist"
5
6
  ],
6
7
  "compilerOptions": {
7
8
  "outDir": "dist",
@@ -13,6 +14,7 @@
13
14
  "strict": true,
14
15
  "esModuleInterop": true,
15
16
  "skipLibCheck": true,
16
- "forceConsistentCasingInFileNames": true
17
+ "forceConsistentCasingInFileNames": true,
18
+ "moduleResolution": "node"
17
19
  }
18
20
  }