New Features
-
Added
trx.getContractInfoAdded
trx.getContractInfo(contractAddress)method that retrieves detailed contract information via thewallet/getcontractinfonode API endpoint. -
Extended
deserializeTxwith full contract type coverageAdded deserialization support for all remaining
TransactionBuildercontract types viaraw_data_hex:- Account:
AccountCreateContract,AccountUpdateContract,SetAccountIdContract,AccountPermissionUpdateContract - Stake / Vote:
FreezeBalanceContract,UnfreezeBalanceContract,VoteWitnessContract - Proposal:
ProposalCreateContract,ProposalApproveContract,ProposalDeleteContract - Smart contract:
CreateSmartContract,UpdateSettingContract,UpdateEnergyLimitContract,ClearABIContract - DEX:
ExchangeCreateContract,ExchangeInjectContract,ExchangeWithdrawContract,ExchangeTransactionContract UpdateBrokerageContract
- Account:
Improvements
-
Plugin restrictions
- Added
PROTECTED_MODULESto prevent plugins from overriding 2 modules:transactionBuilder,plugin. - Added
PROTECTED_METHODSto block plugins from overriding critical signing/key methods:sign,signMessage,signMessageV2,signTransaction,signTypedData,multiSign,setPrivateKey,ecRecover. - ⚠️ Note: Plugin support will be removed in the next major version.
- Added
-
Bug fix
- Corrected the return type of the
getDelegatedResourceV2intrx.tsto consistently return an array.
- Corrected the return type of the
Changes
- Remove dev dependency @eslint/eslintrc.
- Bump serialize-javascript from 7.0.3 to 7.0.5.