Skip to content

Commit

Permalink
Merge pull request #561 from tronprotocol/release/v6.0.0
Browse files Browse the repository at this point in the history
Release/v6.0.0
  • Loading branch information
BlueHoopor authored Sep 20, 2024
2 parents 41ab0d0 + 3e108ad commit 7055429
Show file tree
Hide file tree
Showing 32 changed files with 372 additions and 257 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Change Log
=========

__6.0.0__
- Fix [issue543](https://github.com/tronprotocol/tronweb/issues/543), replace type AxiosHeaders with InstanceType<typeof AxiosHeaders>.
- Add type for value field in the return of the creation by TransactionBuilder methods.
- Fix known type errors.
- Bump axios from 1.6.8 to 1.7.4 and webpack from 5.78.0 to 5.94.0.
- Add TronWeb.address.toChecksumAddress and TronWeb.address.isChecksumAddress APIs.
- Fix the wrong action of `deocdeInput` API in Contract module. [#557](https://github.com/tronprotocol/tronweb/issues/557)

__6.0.0-beta.4__
- Replace `ethers@v5/abi` with abiCoder of `ethers@v6`.
- Bump ethers from v6.11.1 to v6.13.1.
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

[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.

<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).
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).

**Project scope**

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

### Node.js
```bash
npm install tronweb@beta
npm install tronweb
```
or
```bash
yarn add tronweb@beta
yarn add tronweb
```

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

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)
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)

When you instantiate TronWeb you can define

Expand Down Expand Up @@ -170,6 +170,15 @@ const tronWeb = new TronWeb({
)
```

## Integrity Check

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:

```
pub: 4371 AB85 E5A5 8FAA 88AD 7FDF 9945 DBCA 8C4B B810
uid: dev@tronweb.network
```

## Contributions

In order to contribute you can
Expand Down
89 changes: 34 additions & 55 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tronweb",
"version": "6.0.0-beta.4",
"version": "6.0.0",
"description": "JavaScript SDK that encapsulates the TRON HTTP API",
"main": "./lib/commonjs/index.js",
"module": "./lib/esm/index.js",
Expand Down Expand Up @@ -59,7 +59,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0",
"@tronweb3/google-protobuf": "^3.21.2",
"axios": "^1.6.8",
"axios": "^1.7.4",
"bignumber.js": "^9.0.1",
"ethereum-cryptography": "^2.1.3",
"ethers": "^6.13.1",
Expand Down Expand Up @@ -118,8 +118,8 @@
"rimraf": "^3.0.2",
"source-map-support": "^0.5.19",
"ts-loader": "^9.4.3",
"typescript": "^5.1.6",
"webpack": "^5.78.0",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
Expand Down
Loading

0 comments on commit 7055429

Please sign in to comment.