From 124fdcae307f78f45c30e5fb78c8e7e7467d16a1 Mon Sep 17 00:00:00 2001 From: startan Date: Mon, 19 Dec 2022 13:07:53 +0800 Subject: [PATCH] v5.0.0 transaction --- README.md | 11 +- package-lock.json | 15 +- package.json | 11 +- src/lib/transactionBuilder.js | 160 +- src/lib/trx.js | 8 + src/protocol/core/Tron_pb.js | 7512 +++++++++++++++++ .../core/contract/account_contract_pb.js | 1078 +++ .../core/contract/asset_issue_contract_pb.js | 2190 +++++ .../core/contract/balance_contract_pb.js | 2822 +++++++ src/protocol/core/contract/common_pb.js | 28 + .../core/contract/exchange_contract_pb.js | 1262 +++ .../core/contract/proposal_contract_pb.js | 669 ++ .../core/contract/smart_contract_pb.js | 3054 +++++++ .../core/contract/storage_contract_pb.js | 842 ++ .../core/contract/vote_asset_contract_pb.js | 334 + .../core/contract/witness_contract_pb.js | 950 +++ src/utils/index.js | 4 +- src/utils/transaction.js | 971 +++ test/helpers/BlockLib.js | 2 +- test/helpers/GetNowBlock.js | 2 +- test/lib/transactionBuilder.test.js | 443 +- test/lib/trx.test.js | 21 +- test/utils/transaction.test.js | 2704 ++++++ 23 files changed, 25025 insertions(+), 68 deletions(-) create mode 100644 src/protocol/core/Tron_pb.js create mode 100644 src/protocol/core/contract/account_contract_pb.js create mode 100644 src/protocol/core/contract/asset_issue_contract_pb.js create mode 100644 src/protocol/core/contract/balance_contract_pb.js create mode 100644 src/protocol/core/contract/common_pb.js create mode 100644 src/protocol/core/contract/exchange_contract_pb.js create mode 100644 src/protocol/core/contract/proposal_contract_pb.js create mode 100644 src/protocol/core/contract/smart_contract_pb.js create mode 100644 src/protocol/core/contract/storage_contract_pb.js create mode 100644 src/protocol/core/contract/vote_asset_contract_pb.js create mode 100644 src/protocol/core/contract/witness_contract_pb.js create mode 100644 src/utils/transaction.js create mode 100644 test/utils/transaction.test.js diff --git a/README.md b/README.md index 26290706..76f5771d 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,6 @@ yarn add tronweb ``` ### Browser -First, don't use the release section of this repo, it has not updated in a long time. Then easiest way to use TronWeb in a browser is to install it as above and copy the dist file to your working folder. For example: ``` @@ -66,6 +65,8 @@ so that you can call it in your HTML page as