Skip to content

Releases: aeternity/aepp-sdk-js

Release 2.4.1

11 Apr 12:01
50dc494
Compare
Choose a tag to compare

[2.4.1]

Added

  • feat(ACI): Add transform decoded data for 'address' type
  • feat(Aepp): Add Compiler to Aepp rpc methods. Update example app
  • feat(Channel): Add call contract static support
  • feat(Channel): Add get contract state support
  • feat(Channel): Get full channel state support
  • docs(*): Adjust ACI, Contract and Usage

Changed

  • refactor(Http): Handle no response in http stamp error handler
  • fix(Crypto): Fix crypto formatAddress
  • fix(Crypto): Move ADDRESS_FORMAT to crypto

Removed

  • none

Breaking Changes

  • State Channel:
    • channel.state() now returns offchain state instead of last co-signed offchain transaction
    • channel.update(...).state has been renamed to signedTx
    • channel.withdraw(...).state has been renamed to signedTx
    • channel.deposit(...).state has been renamed to signedTx
    • channel.leave().state has been renamed to signedTx
    • channel.createContract(...).state has been renamed to signedTx
    • channel.callContract(...).state has been renamed to signedTx

Notes and known Issues

  • none

Release 2.4.0

02 Apr 14:43
a2fa07e
Compare
Choose a tag to compare

[2.4.0]

Added

  • Install and configure commitizen
  • Add formatAddress function to Crypto
  • Add Contract Compiler API stamp to es/contract (now using instead contract node API)
  • Add basic http client stamp (es/utils/http)
  • ACI stamp (New Contract interface base on contract ACI schema)
    Usage:
const contractIns = await client.getContractInstance(contractSourceCode)
console.log(contract)
 {
   interface: String, // Contract interface source code
   aci: String, // Contract interface json schema
   source: String, // Contract source code
   compiled: String, // Compiled contract code
   deployInfo: { address: contractAddress } // Object with deploy transaction,
   // Function
   compile: () => this, // Compile contract,
   deploy: (init = [], options = { skipArgsConvert: false }) => this, // Deploy contract (compile before if needed)
   call: (fn, params = [], options = { skipArgsConvert: false, skipTransformDecoded: false, callStatic: false } => CallRersult: Object // Call contract function
 }

Changed

  • Extend Account.address() with accountFormatter now you can do
export const ADDRESS_FORMAT = {
  sophia: 1, // return address like `0xHEX_ADDRESS`
  api: 2, // return address like `ak_9LJ8ne9tks78hTD2Tp571f7w2MJmzQMRsiZxKCkMA2d2Sbrc4`
}

//

export { ADDRESS_FORMAT } from 'es/account'
await account.address(format: ADDRESS_FORMAT) // default ADDRESS_FORMAT.api
  • decode node error coming from contract call and callStatic
  • Throw native error instead of object in chain chain.sendTransaction
  • fix arguments parsing in Crypto.sing
  • Add { compilerUrl } to Universal, Contract, Wallet stamp initialization
  • Add ability to get account/balance on specific block hash/height
  • Fix name hash function arguments parsing in Crypto
  • Improve channel rpc usage
  • Improve channel tests and error handling
  • Improve state channel params handling

Removed

  • ContractNodeAPI stamp

Breaking Changes

  • Contract stamp API
1) Use Compiler instead of node API for encode/decode call-data and compile.
2) Change Contract interface:
 - contractCallStatic (address, abi = 'sophia-address', name, { top, args = '()', call, options = {} } = {}) -> (source, address, name, args = [], { top, options = {} } = {}))
 - contractCall (code, abi, address, name, { args = '()', options = {}, call } = {}) -> (source, address, name, args = [], options = {})
 - contractDeploy (code, abi, { initState = '()', options = {} } = {}) -> (code, source, initState = [], options = {})
 - contractEncodeCall (code, abi, name, args, call) -> (source, name, args) // 'source' is -> Contract source code or ACI interface source

Notes and known Issues

  • none

Release 2.3.2

04 Mar 16:12
f7f9597
Compare
Choose a tag to compare

[2.3.2]

Added

  • none

Changed

  • Change default gasPrice from 1e6 to 1e9
  • Fix AEPP example app
  • Force image pull before builds

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • none

Release 2.3.1

27 Feb 22:02
a18e448
Compare
Choose a tag to compare

[2.3.1]

Added

  • Oracle fee calculation
  • getAccountNonce function to tx stamp

Changed

  • Change FEE_BYTE_SIZE from 1 to 8 bytes in fee calculation
  • Improve error handling in tx builder

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • none

Release 2.3.0

22 Feb 17:44
Compare
Choose a tag to compare

[2.3.0]

Added

  • Minerva comparability
  • Add Mnemonic wallet implementation es/utils/hd-wallet

Changed

  • Change Channel legacy API to JSON RPC
  • Change default gasPrice to 1e6
  • Change minFee calculation, multiply min fee by 1e9

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

Release 2.3.0-next

21 Feb 19:17
d80704d
Compare
Choose a tag to compare
Release 2.3.0-next Pre-release
Pre-release

[2.3.0-next]

Added

  • Add channel withdraw and deposit methods

Changed

  • Change default gasPrice in Contract stamp and Tx stamp to 1e9
  • Fix contract tx fee calculation
  • Refactor error handling in sendTransaction function
  • Change default gasPrice to 1e9
  • Change Fee byte_size to 1

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • none

Release 2.2.1-next

19 Feb 15:06
3b87fa5
Compare
Choose a tag to compare
Release 2.2.1-next Pre-release
Pre-release

[2.2.1-next]

Added

  • Add deserialization schema for Channel transactions(channelCreate, channelCloseMutual, channelDeposit, channelWithdraw, channelSettle)
  • Add rawTx and verifyTx to error from poll function(when you wait for transaction will mined)

Changed

  • Change Channel legacy API to JSON RPC
  • Change minFee calculation, multiply min fee by 10^9

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • Depend on bip39 from npm instead of git repo

Release 2.1.1-0.1.0-next

15 Feb 10:59
1753bba
Compare
Choose a tag to compare
Pre-release

[2.1.1-0.1.0-next]

Added

  • none

Changed

  • Fix linter errors

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • none

Release 2.1.0

14 Feb 19:36
fc1128e
Compare
Choose a tag to compare

[2.1.0]

Added

  • Minerva comparability
  • Add Mnemonic wallet implementation es/utils/hd-wallet

Changed

  • Change supported node version range to 1.4.0 <= version < 3.0.0

Removed

  • none

Breaking Changes

  • none

Notes and known Issues

  • none

Release 2.0.0

11 Feb 20:06
cac8f19
Compare
Choose a tag to compare

[2.0.0]

Added

  • Add unpackedTx, txType and signature to validate transaction function
  • Add top param to contract static call(dry-run)
  • Add errors handling for dry-run
  • Add keystore docs
  • Add verify options to send function which verify tx before broadcasting and throw error if tx is invalid
  • Add dryRun to RPC methods
  • Add Oracle transaction creation to Aepp rpc
  • Add tx builder docs
  • Add doc's for utils/bytes and tx builder schema

Changed

  • refactor calculateFee function in TxBuilder(use BigNumber)
  • RpcServer: Avoid storing of window in instance properties
  • Disable balance formatting by default
  • Extend response of Oracle, Aens, Contrat with rawTx
  • Change response of send function now it's and object with transaction data(hash, rawTxHash, ...)
  • Move verification of transaction to chain stamp
  • Move Contract and Oracle API wrapper's to Chain stamp
  • Rename epoch in CHANGELOG, README, HACKING
  • Retrieve node version from /api
  • Fix unpack tx example in bin/aecrypto.js

Removed

  • Remove unused function's from crypto.js

Breaking Changes

  • Remove old transaction builder es/tx/js.js (Please use es/tx/builder instead)
  • Rename es/epoch.js to es/node.js
  • Rename Oracle, Contract, Chain API wrapper files from epoch to node
  • Rename Contract api wrapper method's

Notes and known Issues

  • none