Release v3.6.0 #888
Unanswered
kyonRay
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
v3.6.0
(2024-02-08)
请阅读Java SDK v3.x+文档:
新增
value,gasPrice,gasLimit,maxFeePerGas,maxPriorityFeePerGas,新字段对应的交易版本号升级到v1。详情见: <feat>(transaction): add interfaces of new transaction manager. #841 。TransactionManager类,默认发交易模式子类DefaultTransactionManager, 以及可支持签名拼装的子类ProxySignTransactionManager。这些类型默认发送v1版本号的交易,支持FISCO BCOS 3.6.0 版本新增的所有交易字段。详情见:<feat>(transaction): impl transaction manager, add gas provider. #847 。AssembleTransactionService类,以及AssembleEIP1559TransactionService类,提供开发者从合约调用参数到拼装整个交易的服务接口。此外,还提供了TransactionManager的Setter接口,开发者可以自定义多种交易拼装模式。详情见:<feat>(transaction): impl AssembleTransactionService, add integration test of it. #852 。TransferTransactionService类,提供用户发送原生转账交易。详情见:<feat>(transaction): impl transaction manager, add gas provider. #847 。GasProvider和NonceAndBlockLimitProvider的接口,开发者可以自定义交易的gasPrice,gasLimit,maxFeePerGas,maxPriorityFeePerGas,nonce,blockLimit等字段。注意:目前只在TransactionManager的接口中使用。详情见:<feat&fix>(transaction): add nonceProvider feature, fix transaction manager send call error. #863 。BalanceService类,用户可以通过这些接口更改账户余额。详情见:add balance service #854 。Contract类的事件订阅功能,在合约文件生成Java文件之后,用户可以通过这些接口订阅合约的事件。详情见:<fix>(transaction): add event subscribe logic in Contract.class #855 。Contract类切换TransactionManager发送交易的方式,开发者可以手动切换TransactionManager,发起v1版本的交易。详情见:<fix>(transaction): add event subscribe logic in Contract.class #855 。JsonTransactionResponse类encodeTransactionData,decodeTransaction的方法,提供用户交易Data字节计算,解码Tars编码后的交易。详情见:<fix>(model,precompiled): add tx, receipt and block java native calculate hash methods, fix feature check. #857 。TransactionReceipt、BcosBlockHeader的哈希计算方法,用户可以通过这些接口计算交易回执、区块头的哈希。更新
ContractCodec中包含CryptoSuite的构造函数置为@deprecated,推荐开发者使用包含Hash的构造函数。详情见:<fix>(codec,crypto): deprecated Codec unnecessarily depends CryptoSuite. #844 。JsonTransactionResponse类的readFromHexString和writeToHexString置为 Deprecated,推荐开发者使用encodeTransactionData,decodeTransaction的方法。修复
Config在初始化时出现异常的报错信息。详情见:<fix>(transaction,config): fix config error message, add transaction decoder test. #875 。兼容性说明
org.fisco.bcos.sdk:bcos-java-sdk:2.9.3版本,代码分支为master-2.0。v1,以及配套的TransactionManager,AssembleTransactionService,TransferTransactionService等,都只能在FISCO BCOS 3.6.0及以上支持使用。遗留问题说明
在工作量与收益之间做平衡之后,目前还遗留以下几种场景的编解码仍然可能会有问题,欢迎社区用户贡献解决方案或实现代码 :-)
contract2java编译成Java文件后,方法接口可能会出现调用错误。bytes[2][]这样的动态数组套静态数组,且基础类型仍然是动态类型的类型时,使用contract2java编译成Java文件后,方法接口调用时编解码可能会出现问题。What's Changed
Full Changelog: v3.5.0...v3.6.0
This discussion was created from the release Release v3.6.0.
Beta Was this translation helpful? Give feedback.
All reactions