Releases: aeternity/aepp-sdk-js
Releases · aeternity/aepp-sdk-js
Release 2.4.1
[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 transactionchannel.update(...).state
has been renamed tosignedTx
channel.withdraw(...).state
has been renamed tosignedTx
channel.deposit(...).state
has been renamed tosignedTx
channel.leave().state
has been renamed tosignedTx
channel.createContract(...).state
has been renamed tosignedTx
channel.callContract(...).state
has been renamed tosignedTx
Notes and known Issues
- none
Release 2.4.0
[2.4.0]
Added
- Install and configure
commitizen
- Add
formatAddress
function toCrypto
- 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()
withaccountFormatter
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
andcallStatic
- Throw native error instead of object in chain
chain.sendTransaction
- fix arguments parsing in
Crypto.sing
- Add
{ compilerUrl }
toUniversal, Contract, Wallet
stamp initialization - Add ability to get
account/balance
on specific blockhash/height
- Fix
name hash
function arguments parsing inCrypto
- 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
[2.3.2]
Added
- none
Changed
- Change default
gasPrice
from1e6
to1e9
- Fix
AEPP
example app - Force
image
pull beforebuilds
Removed
- none
Breaking Changes
- none
Notes and known Issues
- none
Release 2.3.1
[2.3.1]
Added
Oracle
fee calculationgetAccountNonce
function totx
stamp
Changed
- Change
FEE_BYTE_SIZE
from 1 to 8 bytes infee
calculation - Improve error handling in
tx
builder
Removed
- none
Breaking Changes
- none
Notes and known Issues
- none
Release 2.3.0
[2.3.0]
Added
Minerva
comparability- Add
Mnemonic
wallet implementationes/utils/hd-wallet
Changed
- Change Channel
legacy
API toJSON RPC
- Change default
gasPrice
to1e6
- Change
minFee
calculation, multiply min fee by1e9
Removed
- none
Breaking Changes
- none
Notes and known Issues
- Change supported node version range to
1.4.0 <= version < 3.0.0
- This release contain changes from: 2.3.0-next, 2.2.1-next, 2.1.1-0.1.0-next, 2.1.0
Release 2.3.0-next
[2.3.0-next]
Added
- Add
channel
withdraw
anddeposit
methods
Changed
- Change default
gasPrice
inContract
stamp andTx
stamp to1e9
- Fix
contract
txfee
calculation - Refactor error handling in
sendTransaction
function - Change default
gasPrice
to1e9
- Change
Fee
byte_size to 1
Removed
- none
Breaking Changes
- none
Notes and known Issues
- none
Release 2.2.1-next
[2.2.1-next]
Added
- Add
deserialization
schema forChannel
transactions(channelCreate
,channelCloseMutual
,channelDeposit
,channelWithdraw
,channelSettle
) - Add
rawTx
andverifyTx
to error from poll function(when you wait for transaction will mined)
Changed
- Change Channel
legacy
API toJSON 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
[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
[2.1.0]
Added
Minerva
comparability- Add
Mnemonic
wallet implementationes/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
[2.0.0]
Added
- Add
unpackedTx
,txType
andsignature
tovalidate
transaction function - Add
top
param to contractstatic call(dry-run)
- Add errors handling for
dry-run
- Add
keystore
docs - Add
verify
options tosend
function which verify tx before broadcasting and throw error if tx is invalid - Add
dryRun
toRPC
methods - Add
Oracle
transaction creation toAepp
rpc - Add
tx builder
docs - Add doc's for
utils/bytes
and tx builderschema
Changed
- refactor
calculateFee
function inTxBuilder
(use BigNumber) RpcServer
: Avoid storing ofwindow
ininstance
properties- Disable
balance formatting
by default - Extend response of
Oracle
,Aens
,Contrat
withrawTx
- Change response of
send
function now it's and object with transaction data(hash, rawTxHash, ...) - Move
verification of transaction
tochain
stamp - Move
Contract
andOracle
API wrapper's toChain
stamp - Rename
epoch
inCHANGELOG
,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 usees/tx/builder
instead) - Rename
es/epoch.js
toes/node.js
- Rename
Oracle
,Contract
,Chain
API wrapper files fromepoch
tonode
- Rename
Contract
api wrapper method's
Notes and known Issues
- none