Skip to content

Releases: aeternity/aepp-sdk-js

4.1.0 (2019-06-24)

24 Jun 13:55
7537a77
Compare
Choose a tag to compare

Bug Fixes

  • Node: Do not throw error if internalUrl not provided. Instead use url (#503) (053faae)
  • TXBuilder: Fix payload serialization if you try to unpack and pack tx. (#498) (73552e5)
  • TxValidator: Fix validation of state channel open transaction (#496) (325cc90)

Features

  • ACI: Refactor ACI module. Split to separated files. (#505) (fb7bc00)

  • Selector: If default account address not provided use the first

  • ACI: Handle ACI without init function

  • ACI: Automatically decide to send transaction on-chai or call-static.
    Add options object like last arguments of generate fn under instance.methods

    const instance = await client.getContractInstance(source)
    // Deploy contract
    await contract.methods.init(100, 'test', options)
    //or
    await contract.deploy([100, 'test], options)
    // Call function
    const result = await instance.call('sum', [2, 5], options)
    //
      // Automatically decide to send tx on-chain or call-static(dry-run) base on if function stateful or not
      const result = await instance.methods.sum(2, 5, options)
      // Manually make on-chain
      const result = await instance.methods.sum.send(2, 5, options)
      // Manually make call-static
      const result = await instance.methods.sum.get(2, 5, options)
    //
    

Docs

  • Usage:: Add instructions about how to include directly the SDK in a html page

Notes

  • ACI: Change result object of ACI deploy function

4.0.1 (2019-06-14)

14 Jun 10:04
ef2ea62
Compare
Choose a tag to compare

Bug Fixes

  • RPC: Add contract contractDecodeCallResultAPI to RPC (#482) (7eb6bd8)
  • README: Fix flavor link (#480)

Code Refactoring

  • Compiler: Fix compiler compatibility mechanism (#479) (78cc990)
  • Utils: Move json-bigint implementation to utils (#486) (1538867)

Build

  • webpack: Add another bundle(dist/aepp-sdk.browser-script.js) for using in <script> tag (#485)

4.0.0 (2019-06-12)

12 Jun 14:24
3dcf6e7
Compare
Choose a tag to compare

Bug Fixes

  • Ae: Fix exception when it used without Contract stamp

Code Refactoring

  • SCM: Update compatibility range for node: 3.0.1 - 4 and compiler 3.1.0 - 4 (#474) (a1494fd)
  • Test: Simplify client creation

Features

  • Docs chore(Docs): new docs (#370)
  • Compiler: Add getCompilerVersion to compiler stamp
  • ACI: Make compatible with compiler 3.1.0 (#457) (d92f2c7), closes #458
  • ACI: Generate JS function proto for each of contract function (#439) (2f47b4d)
  • Compiler/ACI: Make ACI compatible with compiler 3.0.0 (#441) (2a8eb1a)
  • Node: Avoid usage of "universal-url" package (#434) (a8268d5)
  • TX: encode payload as base64 (#460) (ad490af)
  • TX_BUILDER: Fix bug related to contract fee calculation. (#472) (7214cfb)

BREAKING CHANGES

  • DOCS Restructure and rework sdk documentation
  • SCM: This change will make the release not compatible with older version of the node and
    compiler
  • ACI: Change Contract low lvl API:
    • change contractDecodeData interface from:
      • (type:String, data: String) => Any to (source: String, fn: String, callValue: String, callResult:String) => Any.
        (callResult is callType from call result, can be ok, revert, ...)

3.4.1 (2019-06-05)

06 Jun 11:43
b57edac
Compare
Choose a tag to compare

Bug Fixes

  • Deps: Update axios lib to 0.19.0 due to security issue (f951765)

Release 3.4.0 (2019-05-22)

22 May 11:08
58e013b
Compare
Choose a tag to compare

Bug Fixes

  • State Channels: Remove automatic pinging to fix browser compatibility (#432) (0700f3a)

Features

  • Transaction Builder: Improve min fee calculation(Reduce the fee) (#424)
  • AXIOS: Add ability to intercept error from axios (#431)

    Added additional param to sdk initialization axiosConfig
    Example: Universal({ axiosConfig: { config: { // axios config object }, errorHandler: (err) => throw err }})

  • Transaction Builder: Implement vm/abi validation for contract/oracle tx based on consensus protocol version. Add custom verification based on transaction type (#425) (#426)

Release 3.3.0

17 May 15:49
Compare
Choose a tag to compare

3.3.0 (2019-05-17)

Bug Fixes

  • AEP exampe: Fix contract in AEPP example (e2fec19)

Features

  • Consensus: Add function to get consensus version. (#413) (46027cd)
  • State Channels: Make state channels compatible with aeternity 3.0.0 (#415) (668e7f1)
  • Transaction Builder: Add serializations for transactions introd… (#416) (fd7b8ce)

BREAKING CHANGES

  • NODE Change compatibility to node versions >= 2.3.0 and < 4.0.0

Release 3.2.1

16 May 15:15
1e6a544
Compare
Choose a tag to compare

3.2.1 (2019-05-16)

Bug Fixes

  • Joi: Add JOI browser comparability

Release 3.2.0

16 May 11:10
0877fd0
Compare
Choose a tag to compare

Bug Fixes

  • ACI: Add ability to pass zero address as number. (#396) (b5b5c61)
  • ACI: Fix address type transformation when decoding data (#335) (e37cdfc)
  • Contract: Add error handling(decoding) in low lvl contract API (#386) (e1fdce0)
  • Dependencies: Use URL class instead of "url" package
  • Dependencies: Use custom version of json-bigint
  • Dependencies: Avoid usage of semver package and cleanup deps
  • RPC: rpc client: Handle case if aepp opened without wallet

Features

  • KEYSTORE: Add browser compatibility
  • TX: Handle VM/ABI fields serialization and validation basaed on tx type and node version
  • ACI: Add contract, address, record types argument/result transformation (#349) (0599d7d)
  • WEBPACK: webpack configs: Mark all dependencies as external
  • WEBPACK: Setup webpack-bundle-analyzer plugin
  • ACI: Add Option sophia type to ACI (#390) (83f5279)
  • ACI: Implement arguments validation for generic sophia types(list, map, tuple, record) (#384) (956e59e)
  • ACI: Update due to compiler API changes (#331) (e047f3b)
  • AE: Allow to spend % of balance. (#371) (f97a2ae), closes #336
  • Aepp: Add Compiler to Aepp rpc methods. Update example app (#312) (9c72521)
  • Aepp: Refactor Aepp example app. Allow to spend with payload and add reverse iframe approach.
  • Compiler: Add decode CallData by source/bytecode (#354) (761f36b)
  • Fortuna: Node 3.0.0 compatibility (#397) (17b78d5)
  • RPC: Add getNodeInfo to AEPP stamp through RPC (#359) (2ddeea8)
  • State Channels: Add cleanContractCalls method (#338) (778159a)
  • State Channels: Ping every 10 seconds to persist connection (#324) (6d0e156), closes #276 #299 #300 #303 #302 #279 #275 #276 #299 #300
  • State Channels: Remove endpoint param (#391) (8d9ea7e)

BREAKING CHANGES

  • State Channels: Endpoint param is removed and no longer defaults to "/channel". This means that
    "/channel" (or other path) must be appendend to url para

  • Fix channel test

Release 3.1.0

24 Apr 12:51
c2cdb48
Compare
Choose a tag to compare

3.1.0 (2019-04-24)

Bug Fixes

  • ACI: Fix address type transformation when decoding data (#335) (e37cdfc)

Features

  • ACI: Add contract, address, record types argument/result transformation (#349) (0599d7d)
  • ACI: Update due to compiler API changes (#331) (e047f3b)
  • Aepp: Add Compiler to Aepp rpc methods. Update example app (#312) (9c72521)
  • Compiler: Add decode CallData by source/bytecode (#354) (761f36b)
  • RPC: Add getNodeInfo and getNetworkId to AEPP stamp through RPC (#359) (2ddeea8)
  • State Channels: Add cleanContractCalls method (#338) (778159a)
  • State Channels: Ping every 10 seconds to persist connection (#324) (6d0e156)

Release 3.0.0

17 Apr 14:55
38b8fb9
Compare
Choose a tag to compare

3.0.0 (2019-04-17)

Bug Fixes

  • ACI: Fix address type transformation when decoding data (#335) (e37cdfc)

Features

  • TX_BUILDER: Channel tx serializations
  • TxValidator: Add minGasPrice validation to contract transactions
  • ACI: Update due to compiler API changes (#331) (e047f3b)
  • Aepp: Add Compiler to Aepp rpc methods. Update example app (#312) (9c72521)
  • State Channels: Add cleanContractCalls method (#338) (778159a)

BREAKING CHANGES

  • ACI Remove 2.0.0 compiler compatibility