Skip to content

Latest commit

 

History

History
187 lines (102 loc) · 4.87 KB

CHANGELOG.md

File metadata and controls

187 lines (102 loc) · 4.87 KB

Changelog

All notable changes to this project will be documented in this file, as of version 0.2.0.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[2.3.6] - 2022-11-30

  • Delete console.log

[2.3.5] - 2022-11-21

  • Add functionAptos in txParams for Dapps to sendUncheckedTransaction in Aptos networks

[2.3.1] - 2022-10-23

  • Support aptos GET restful api for JsonRpcProvider used in window.starcoin injected into Dapps from Starmask

[2.2.2] - 2022-10-06

  • Fix: Replace halley chainId from 3 to 253

[2.2.0] - 2022-10-06

  • Support Aptos which address length is 64, while starcoin address length is 32

[2.1.6] - 2022-06-07

  • Fix: TypeError: Buffer.from(...).readBigUInt64LE is not a function in browsers, #54

[2.1.5] - 2022-05-18

  • Fix: encodeScriptFunctionByResolve support arg type of { Vector: 'Address' }, example: 0x1::TransferScripts::batch_peer_to_peer_v2

[2.1.4] - 2022-05-17

  • Fix #42 #43: transaction generated by encodePackage will fail when dry_run_raw on chain

[2.1.2] - 2022-05-16

  • Fix #48: Reverse adding read-bigint, which is incompatible in webpack5

[2.1.1] - 2022-05-12

  • Fix #46: add test for encodeScriptFunctionByResolve call functionId 0x1::TransferScripts::batch_peer_to_peer_v2

[2.1.0] - 2022-04-26

  • fix: empty string should return Uint8Array(1)[0], instead of emptey

[2.0.0] - 2022-03-25

  • replace @starcoin/stc-ed25519 with @noble/ed25519, because the latest version of @noble/ed25519 already supports BigInt.
  • replace xxxn with BigInt(xxx)

[1.8.0] - 2022-01-07

  • export version
  • support optional custom addGasBufferMultiplier(default 1.5) in transaction params

[1.5.3] - 2021-09-05

  • args in encodeScriptFunctionByResolve support string, add test case: encodeScriptFunctionByResolve3
  • replace stringToBytes(str) with: new Uint8Array(Buffer.from(str))
  • replaced bytesToString(arr) with: Buffer.from(arr).toString()

[1.5.2] - 2021-08-26

  • add encoding.stringToBytes && encoding.bytesToString

[1.5.1] - 2021-08-26

  • add one param(gasUniPrice) in utils.tx.generateRawUserTransaction

[1.5.0] - 2021-08-26

  • support contract.call_v2 method in rpc actions

[1.4.9] - 2021-08-18

  • add utils.tx.encodeScriptFunctionByResolve

[1.4.7] - 2021-08-13

  • support '_' and '-' character in module and function name

[1.4.4] - 2021-08-07

  • support optional expiredSecs in txParams, default value is 43200(12hours)

[1.4.3] - 2021-07-14

  • add test case for deploy contract using blob hex

    • yarn test:unit src/providers/jsonrpc-provider.spec.ts --testNamePattern="deploy contract"
  • add test case for decode SignedMessage

    • yarn test:unit src/utils/signed-message.spec.ts --testNamePattern="decode"
  • add chain_id in SignedMessage

  • add encoding.packageHexToTransactionPayload / packageHexToTransactionPayloadHex

  • support contract.dry_run_raw

[1.4.2] - 2021-07-11

  • add 2 functions in utils.signedMessage

    • encodeSignedMessage
    • recoverSignedMessageAddress
  • add 2 test cases

    • yarn test:unit src/utils/signed-message.spec.ts --testNamePattern="encode SignedMessage: simple-keyring"
    • yarn test:unit src/utils/signed-message.spec.ts --testNamePattern="encode SignedMessage: hd-keyring"
  • support Personal Sign in starmask-test-dapp

[1.3.0] - 2021-06-27

  • add utils.tx.encodeStructTypeTags

[1.2.1] - 2021-06-14

  • fix: hexStripZeros will delete the first 0 if address is start with 0x0, use addHexPrefix indeed

[1.2.0] - 2021-06-12

  • payload of generateRawUserTransaction should be caculated from outside and be passed in
  • add test case for 0x1::DaoVoteScripts::cast_vote

[1.1.0] - 2021-06-11

Changed

  • add Web3Provider
  • replace JsonrpcProvider with JsonRpcProvider
  • support Send STC in starmask-test-dapp

[1.0.3] - 2021-06-09

Changed

  • Remove jsSHA package and still use js-sha3 to hash
  • Fix buffer error in browser

[0.2.7] - 2021-05-07

Changed

  • Remove util TextEncoder & TextDecoder

[0.2.5] - 2021-05-07

Changed

  • Use 'util' package to get 'util.TextEncoder', supporting node.js 10

[0.2.4] - 2021-05-06

Changed

  • Add utils.tx.generateRawUserTransaction
  • Add utils.tx.signRawUserTransaction
  • Remove utils.tx.generateSignedUserTransactionHex
  • Modify related test cases in encoding/index.spec.ts and providers/jsonrpc-provider.spec.ts

[0.2.3] - 2021-04-30

Changed

  • Add functions to convert private key to public key and public key to auth key & address (#16)

[0.2.2] - 2021-04-28

Changed

  • Add event decoding

[0.2.1] - 2021-04-28

Changed

  • Add utils.tx.generateSignedUserTransactionHex