Skip to content

Commit 7055429

Browse files
authored
Merge pull request #561 from tronprotocol/release/v6.0.0
Release/v6.0.0
2 parents 41ab0d0 + 3e108ad commit 7055429

32 files changed

+372
-257
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change Log
22
=========
33

4+
__6.0.0__
5+
- Fix [issue543](https://github.com/tronprotocol/tronweb/issues/543), replace type AxiosHeaders with InstanceType<typeof AxiosHeaders>.
6+
- Add type for value field in the return of the creation by TransactionBuilder methods.
7+
- Fix known type errors.
8+
- Bump axios from 1.6.8 to 1.7.4 and webpack from 5.78.0 to 5.94.0.
9+
- Add TronWeb.address.toChecksumAddress and TronWeb.address.isChecksumAddress APIs.
10+
- Fix the wrong action of `deocdeInput` API in Contract module. [#557](https://github.com/tronprotocol/tronweb/issues/557)
11+
412
__6.0.0-beta.4__
513
- Replace `ethers@v5/abi` with abiCoder of `ethers@v6`.
614
- Bump ethers from v6.11.1 to v6.13.1.

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
[TronWeb](https://tronweb.network) aims to deliver a unified, seamless development experience influenced by Ethereum's [Web3](https://github.com/ethereum/web3.js/) implementation. We have taken the core ideas and expanded upon them to unlock the functionality of TRON's unique feature set along with offering new tools for integrating DApps in the browser, Node.js and IoT devices.
3232

33-
<font color=red>Please note that this version is an experimental beta version.</font> To better support its use in TypeScript projects, we have rewritten the entire library in TypeScript. And to make the TronWeb API more secure and consistent, there are some breaking changes. <font color=red>Please check out [<font color=red>6.x API documentation</font>](https://tronweb.network/docu/docs/intro/)</font> for detailed changes so you can start using the new TypeScript version of TronWeb early. Any questions or feedback are welcome [here](https://github.com/tronprotocol/tronweb/issues/new).
33+
To better support its use in TypeScript projects, we have rewritten the entire library in TypeScript. And to make the TronWeb API more secure and consistent, there are some breaking changes. <font color=red>Please check out [<font color=red>6.x API documentation</font>](https://tronweb.network/docu/docs/intro/)</font> for detailed changes so you can start using the new TypeScript version of TronWeb early. Any questions or feedback are welcome [here](https://github.com/tronprotocol/tronweb/issues/new).
3434

3535
**Project scope**
3636

@@ -64,11 +64,11 @@ For recent history, see the [CHANGELOG](https://github.com/tronprotocol/tronweb/
6464

6565
### Node.js
6666
```bash
67-
npm install tronweb@beta
67+
npm install tronweb
6868
```
6969
or
7070
```bash
71-
yarn add tronweb@beta
71+
yarn add tronweb
7272
```
7373

7474
### Browser
@@ -118,7 +118,7 @@ First of all, in your typescript file, define TronWeb:
118118
import { TronWeb, utils as TronWebUtils, Trx, TransactionBuilder, Contract, Event, Plugin } from 'tronweb';
119119
```
120120

121-
Please note that this is not the same as v5.x. If you want to dive into more differences, check out [migration guide](https://tronweb.network/docu/docs/6.0.0-beta.3/Migrating%20from%20v5)
121+
Please note that this is not the same as v5.x. If you want to dive into more differences, check out [migration guide](https://tronweb.network/docu/docs/6.0.0/Migrating%20from%20v5)
122122

123123
When you instantiate TronWeb you can define
124124

@@ -170,6 +170,15 @@ const tronWeb = new TronWeb({
170170
)
171171
```
172172

173+
## Integrity Check
174+
175+
The package files will be signed using a GPG key pair, and the correctness of the signature will be verified using the following public key:
176+
177+
```
178+
pub: 4371 AB85 E5A5 8FAA 88AD 7FDF 9945 DBCA 8C4B B810
179+
180+
```
181+
173182
## Contributions
174183

175184
In order to contribute you can

package-lock.json

Lines changed: 34 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronweb",
3-
"version": "6.0.0-beta.4",
3+
"version": "6.0.0",
44
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
55
"main": "./lib/commonjs/index.js",
66
"module": "./lib/esm/index.js",
@@ -59,7 +59,7 @@
5959
"dependencies": {
6060
"@babel/runtime": "^7.0.0",
6161
"@tronweb3/google-protobuf": "^3.21.2",
62-
"axios": "^1.6.8",
62+
"axios": "^1.7.4",
6363
"bignumber.js": "^9.0.1",
6464
"ethereum-cryptography": "^2.1.3",
6565
"ethers": "^6.13.1",
@@ -118,8 +118,8 @@
118118
"rimraf": "^3.0.2",
119119
"source-map-support": "^0.5.19",
120120
"ts-loader": "^9.4.3",
121-
"typescript": "^5.1.6",
122-
"webpack": "^5.78.0",
121+
"typescript": "^5.5.4",
122+
"webpack": "^5.94.0",
123123
"webpack-cli": "^5.0.1",
124124
"webpack-node-externals": "^3.0.0"
125125
},

0 commit comments

Comments
 (0)