Skip to content

v5.0.0

Compare
Choose a tag to compare
@aaronmgdr aaronmgdr released this 24 Aug 20:25
· 236 commits to master since this release
07400b0

Description

This Beta Release for 5.0 series Adds Support for and favors using eip1559 (when no fee currency selected) and cip42 (when it is) legacy transaction serialization will only be used if gasPrice is explicitly set.

Note on versions 5.0.0 and 5.0.1

These version have a bug and do not work use 5.0.2 or higher

Other changes

TopLine Changes

  • Add support for CIP42 and EIP1559 Transactions
  • Prefer EIP1559 if no feeCurrency and CIP42 if using feeCurrency, Old CeloLegacy transations still supported (set the gasPrice explicitly) but discouraged
    upgrade Web3 dependency

@celo/connect

  • gasPrice is no longer an option on config. setting 0 (or any empty value) for gasPrice in transaction will result in maxFeePerGas and maxPriorityFee per gas being set on the transaction

  • likewise gasPrice is no longer settable on the connection itself

  • (note that the gasPrice function for fetching price from node is NOT affected)

  • replace connection.fillGasPrice with connection.setFeeMarketGas

  • add inputAccessListFormatter

  • remove deprecated setGasPriceForCurrency

  • EncodedTransaction Type now supports CIp42 and EIP1559 transactions

  • inputCeloTxFormater now returns type FormattedCeloTx although apart from support for cip42 and eip1559 tx the data returned hasnt changed

  • numberToHex, ensureLeading0x, inputAddressFormatter now are typed to return 0x{string} instead of just string

*added parseAccessList and inputAccessListFormatter for converting accessList from json to array of array and back

  • RLPEncodedTx now types its transaction field as FormattedTransaction this is more accurate than the CeloTX type it previously had

@celo/contrackit

  • removed gasPriceSuggestionMultiplier == gas price from rpc no longer multipled by 5

  • remove kit.fillGasPrice

  • remove updateGasPriceInConnectionLayer

  • remove kit.gasPrice

@celo/wallet-base

  • extractSignature now throws if the length of provided tx is not correct

  • extractSignature was incorrectly typed to return Buffers for r and s values

  • ensureLeading0x now types output to be 0x{string}

npm

https://www.npmjs.com/package/@celo/contractkit/v/5.0.0-beta.1