Release notes
v2.4.0
Support conflux-rust v2.4.0
new RPC methods(https://github.com/Conflux-Chain/conflux-rust/blob/master/changelogs/JSONRPC.md#v240)cfx_feeHistory,cfx_maxPriorityFeePerGasetc.Support Conflux 2930 and 1559 type transactions, will auto detect the transaction type and use the right method to sign the transaction. Default is 1559 type.
The transaction now has a new field
typewhich can be0,1or2,0is legacy type,1is 2930 type2is 1559 type.The 2930 type transaction will have a new field
accessListwhich is an array ofaddressandstorageKeyspairs.The 1559 type transaction will have a new field
maxPriorityFeePerGasandmaxFeePerGas.
Both cfx_call, and cfx_estimateGasAndCollateral have also been updated to support 1559 type transactions.
Transaction's receipt have three new fields
type,burntGasFee,effectiveGasPriceBlock have a new field
baseFeePerGas
Conflux class constructor parameters do not support defaultGasRatio, defaultStorageRatio anymore, because the estimation of gas and storage collateral is very accurate now.
v2.3.0
Add three debug RPC method in
cfxnamespacedebug_getTransactionsByBlock,debug_getEpochReceiptProofByTransaction,debug_getTransactionsByEpochAdd filter related RPC method in cfx namespace
cfx_newFilter,cfx_newBlockFilter,cfx_newPendingTransactionFilter,cfx_getFilterChanges,cfx_getFilterLogs,cfx_uninstallFilterAdd
pos_getAccountByPowAddress,pos_getConsensusBlocks,pos_getEpochState,pos_getLedgerInfoByEpoch,pos_getLedgerInfoByBlockNumber,pos_getLedgerInfoByEpochAndRound,pos_getLedgerInfosByEpochinposnamespaceAdd trace method
trace_epochintracenamespaceSupport new scheme for epoch parameter like EIP-1898, check details here, supported methods are:
cfx_getBalance,cfx_getCode,cfx_call,cfx_getNextNonce,cfx_getStorageAt
v2.1.11
Add
cfx_getCollateralInfoRPC method which was import fromconflux-rust v2.3.0SponsorInfoadd two more fieldsavailableStoragePointandusedStoragePoint
v2.1.7
Optimize the gas and storageCollateral logic of transaction population.
v2.1.5
Add support the new InternalContract
ParamsControlRemove
cfx_getLogsfilter's fieldoffsetandlimitAdd support for new RPC
cfx_getParamsFromVoteUpdate typescript datatype definitions
v2.1.0
Add more jsdoc comment to generate ts
d.tsfilesMove
cfxrelated formatters (block, transaction, receipt, log and etc) to independent file./src/rpc/types/formmatter.js.
v2.0.7
Fix logFilter formater bug
v2.0.6
Fix contract method batch call bug
v2.0.3
Change trace
epochNumber,transactionPositionfrom BigInt to IntAdd field
totalEspaceTokensingetSupplyInfo's response
v2.0.0
Add support for PoS RPC methods
Split RPC methods to it's own namespace, currently include:
cfx,pos,trace,txpoolAdd support for batch RPC
Browser export class name change from Conflux to
TreeGraphAdd method
getNextUsableNoncetoconflux.advanced, which will first try to usetxpool_nextNonceto get a usable nonce, if failed it will fall back tocfx_getNextNonceAdd three internal contracts
CrossSpaceCall,ConfluxContext,PoSRegisterAdd one method
cfxMappedEVMSpaceAddresstoaddressutility.
trace updates
Add a new boolean field
validto indicate whether this trace has change stateThe
internal_transfer_actiontype trace has added four new fieldfromPocket,toPocket,fromSpace,toSpaceThe
callandcreatetype trace has added one new fieldspace
For detail explanation of the trace updates check this doc.
Check v2.0 changes for change details
Provider API
Add
provider.requestto make provider compliant with EIP-1193Add a new provider
WechatProviderwhich can be used in Wechat environment
Here is the complete Conflux-rust v2.0 RPC change overview
v1.7.2
Add
balancekey in the result ofestimateGasAndCollateralAdvanceas the balance ofoptions.from.
v1.7.1
Add method
checkBalanceAgainstTransaction, andestimateGasAndCollateralAdvanceto better estimate gas and check balance.
v1.6.15
Add
blockNumberto block related methodscfx_getBlockByHash,cfx_getBlockByEpochNumber,cfx_getBlockByHashWithPivotAssumptionwhich needConflux-rust v1.1.5or above.Add one new RPC method
cfx_getBlockByBlockNubmer
v1.6.10
format.bytesnow only support hex string, will not accept non hex utf-8 stringAdd cli
cfxjswhich can random generate a0x1 prefix ethereumaddressConfluxadd a new methodgetEpochReceiptsByPivotBlockHash
v1.6.9
Support
keepAliveoption inConfluxinitialization.Add one util method
tracesInTreeto return a tree structure traces.Fix contract method override bug.
Add a address utility method
shortenCfxAddress.
v1.6.3
Support
retryoption inConfluxinitialization.Add pending transaction status enum
CONST.PENDING_TX_STATUScurrently have two value:FUTURE_NONCENOT_ENOUGH_CASH
v1.6.2
Optimize the address convert performance.
v1.6.1
Confluxadd methodgetAccountPendingTransactionsto get one account's pending transaction.Split API documents into several files, which is easy to read.
v1.6.0
This version is corresponding to conflux-rust v1.1.3, check it's changelog for detailed info.
format.addresswill respectnetworkId,verboseflag even if the first parameter is an CIP37 address.Add support for a standard token contract through
Conflux.CRC20cfx_getLogsfilter option add one more fieldoffsetAdd one RPC method
cfx_getAccountPendingInfoto get account's transaction pending infoepochspubsub now accept one parametersubscription_epochthe supported values arelatest_mined(default) andlatest_stateInclude
blockHash,epochHash,epochNumber,transactionHash, andtransactionPositionfor trace RPCsWhen ABI encoding
bytes-Ntype, if the data's length is not enough, will auto pad (right) toN
v1.5.13
getStatusmethod rethurn three new fieldslatestState,latestConfirmed,latestCheckpointadd two
tracerelated rpctraceTransaction,traceFilteradd one debug rpc
getEpochReceiptsadd two provider wrapper
wrapEthereum,wrapConfluxto work with metamask
Notice: this is an update corresponding conflux-rust v1.1.2
v1.5.10
Conflux's option can passnetworkIdnow, and add a new methodupdateNetworkIdto sync networkId from RPC.format.addresswill return new CIP37 addresses, if you pass a hex address,networkIdshould also be passed as second parameteradd new method
format.hexAddressto format hex addressWallet's constructor add a parameter
networkIdPrivateKeyAccount
constructor,decrypt,randomneed one more parameternetworkIdTransaction,Messagesignmethod need one more parameternetworkIdConflux's get methods will return new address, and same to contract method returned address.
getSupplyInforesponse add new fieldtotalCirculatinggetStatusresponse add new fieldnetworkId
v1.1.7
Add RPC method
traceBlocktoConfluxwhich can used to get block's execution trace
v1.1.6
export
Contract
v1.1.5
add
stateMutabilityfor method from abi
rename EventLog.params to EventLog.arguments
add
subscribeLogsfor EventLog
contract decode constructor data with out bytecode
v1.1.4
add
conflux.getSupplyInfo
v1.1.3
WebsocketProvider with Websocket options
v1.1.2
add
conflux.getVoteListadd
conflux.getDepositListupdate
conflux.getTransactionReceipt
v1.1.1
fix: update request id avoid repeat
v1.1.0
fix: use native websocket for front-end
use BigInt for nodejs, JSBI for browser
v1.0.1
fix: EventCoder, FunctionCoder, valueCoder decode return string but not JSBI
v1.0.0
add
defaultGasRatioanddefaultStorageRatio
add
BaseAccountandPrivateKeyAccount
Account signTransaction and signMessage to be async
add wallet
wallet use for create and manage Account by address
wallet use for sendTransaction
add Subscription
add internal contract
add checksum address
providerFactoryonly accept first argument as override options
add batch request
add WebSocketProvider
BaseProvider instanceof EventEmitter
add CONST
export
formatandsignwithoututil
add
Dripto replace unit
for input, use Drip.fromXXX to get drip number string
include all method from conflux JSON_RPC document
friendly example code
example will guide user to use SDK step by step
charming code organization
split abi coder with types
split contract method, event and override
v0.13.4
rename
send_transactiontocfx_sendTransaction
v0.13.3
Account.encrypt returned address drop '0x' prefix
v0.13.2
use scrypt-js
v0.13.1
RPC returned all number as hex
fix
sendTransaction,call,estimateGasAndCollateralshallow copyoptions
v0.13.0
Account.decryptrequired keystoreV3 object as input, and putpasswordas second parameter
Account.prototype.encryptreturned keystoreV3 format object
epochNumber accept
earliest,latest_checkpoint,latest_confirmedlabel
v0.12.0
add
getAdmin
sendTransaction accept privateKey as
from
create Account accept address
v0.11.0
defaultGasPrice, only use for sendTransaction
remove defaultEpoch, defaultChainId, defaultGas, defaultStorageLimit
v0.10.3
fix broken sourcemap
v0.10.2
fix: include crypto into browserify build
v0.10.1
add format.bytes
add contract method & event type or signature indexes
v0.10.0-alpha
add
getStatus
remove
getRiskCoefficientand replace withgetConfirmationRiskByHash
remove
getAccountcause it's internal RPC.use
requirereplaceimportto gen code.
v0.9.2
add defaultStorageLimit and defaultChainId for Conflux
v0.9.1
abi implicitly converting string to number
solidity method: function add(uint,uint) public returns (uint);
v0.9.0-beta
format nonce as JSBI.BigInt
format transaction fields
unit return string
contract fields "code" rename to "bytecode"
abi decodeData and decodeLog return object
Last updated
Was this helpful?