From 7dca1935613ba14f51c3ea21ef4d50f1f4d75d4f Mon Sep 17 00:00:00 2001
From: naz_dou <41945483+nduchak@users.noreply.github.com>
Date: Thu, 17 Oct 2019 16:21:15 +0300
Subject: [PATCH] Realign 6.0.0 (#719)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* chrome(Release): Bump version 5.0.0. Regenerate docs
* chrome(Release): Prepare CHANGELOG. Regenerate lock file
* Release 6.0.0 (#716)
* Update @aeternity/aepp-sdk in group default to the latest version π (#702)
* fix(package): update @aeternity/aepp-sdk to version 5.0.0
* fix(package): update @aeternity/aepp-sdk to version 5.0.0
* chore(package): update lockfile examples/browser/vuejs/connect-two-ae/identity/yarn.lock
* chore(package): update lockfile examples/browser/vuejs/connect-two-ae/aepp/yarn.lock
* Realign 5.0.0 (#701)
* chrome(Release): Bump version 5.0.0. Regenerate docs
* chrome(Release): Prepare CHANGELOG. Regenerate lock file
* Update README.md (#704)
fix typo
* Feat(AENS): auction name fee calculation (#706)
* chrome(Release): Bump version 5.0.0. Regenerate docs
* chrome(Release): Prepare CHANGELOG. Regenerate lock file
* feat(AENS): Add auction name fee helpers and schema
* feat(AENS): Add nameFee calculation and validation to name `claim` function
* feat(AENS): Fix name length
* feat(AENS): Add `bid` function. Add test for name auction
* feat(AENS): Clear logs
* refactor(AENS): refactor claim (#709)
* chrome(Release): Bump version 5.0.0. Regenerate docs
* chrome(Release): Prepare CHANGELOG. Regenerate lock file
* refactor(constants): Move const to shema. Improve isAddressValid.
* refactor(constants): Move const to shema. Improve isAddressValid.
* refactor(AENS): Remove `prelimaCommitmentId`. Add function for generating `nameId`
* refactor(AE): Generate nameId in spend by name function instead of calling node
* Fix(Example): FIx example app (#712)
* chrome(Release): Bump version 5.0.0. Regenerate docs
* chrome(Release): Prepare CHANGELOG. Regenerate lock file
* fix(examples): Fix contract in example AEPP
* fix(examples): Add compilerVersion to AEPP example app
* fix(Compiler): Add cross compiler compatibility for old compiler
* fix(Compiler): Revert cross compiler options check
* chore(Jenkins): Force
* fix(AENS): Change tld for Lima from `aet` to `chain` (#714)
* fix(AENS): Change tld for Lima from `aet` to `chain`
Point docker to the rc-5 node and 4.0.0 compiler
Move `classify` method from AENS to transaction builder helpers
* fix(AENS): Fix claim command with new tld
* feat(SPEND): Add additional validation for recipient (#715)
* feat(state channels): make state channels compatible with node v5.0.0β¦ (#688)
* feat(Lima): Create Lima branch
* feat(Compiler): Compiler 4.0.0 compatibility (#632)
* feat(newCompiler): Increase compiler version. Add `backend` option to compiler API
* fix(TX): Add fate vm version
* feat(Contract): Make Contract works with node 5.0.0 rc1 (lima hard-fork) and compiler 4.0.0 rc2
* chore(test): Debug channel test
* fix(channel): fix contract in channel test
* chore(test): Remove logs
* feat(ACI): Add `payable` to contract call
* feat(ACI): Add test for payable
* fix(Linter): Fix linter error
* feat(Compiler): Point to compiler 3.2.0. Improve `payble` to support old compiler
* feat(Compiler): disable payable test
* feat(Lima): Point compiler to 4.0.0. Enable tests for `payable`
* feat(Lima): Make contact for channel test payable
* chore(test): Enable tests
* feat(Contract/ACI): Add ability to use contract with external deps(`include "someLib"`) (#653)
* docs(Contract): Adjust contract docs (#658)
* Release 4.7.0-next.1 (#660)
* chore(release): Generate CHANGELOG. Bump version
* chore(test): Test backward compatibility
* chore(test): revert
* feat(SCHEMA): Add fate constants
* chore(release): bump version to 5.0.0-next.1
* feat(Lima): add check for compiler <-> consensus protocol version check
* feat(Lima): add check for abi/vm <-> backend(FATE/AEVM) (#680)
* feat(Lima): add check for abi/vm <-> backend(FATE/AEVM)
* feat(Lima): add check for abi/vm <-> backend(FATE/AEVM)
* feat(Contract): Add fate tests
* feat(Contract): enable all tests
* feat(Node): Add check in dry-run endpoint(node cross compatibility)
* feat(Contract): enable all tests
* feat(Contract): enable all tests
* feat(Contract): fix docker file run command
* feat(Swagger): Resolve refs
* feat(tests): Skip Channel and AENS
* feat(Node): Change compatibility range from 4.x.x to 5.x.x
* feat(Node): Change compatibility range from 4.x.x to 6.0.0
* fix(Oracle): fix abi field resolving
* chrome(build): Regenerate lock
* feat(state channels): make state channels compatible with node v5.0.0-rc.2
* feat(Compiler): make FATE by default (#693)
* feat(Contract): Use FATE by default
* Fix lint error
* feat(AENS): Lima compatibility (#687)
* Aens lima compatibility
* Make aens cross compatible with pre-lima releases
* Remove .only
* Fix native build of claim tx test
* feat(GA): Make GA compatible with Lima. Add cross compiler compatibility
* fix(Test): Fix test for cross compatibility. Add test for AEVM
* fix(AE): Add pointers verification for spend by name. Improve AENS cross node tests
* build(Node): Point node to 5.0.0-rc3
* Change node version to v5.0.0-rc.3
* Fix test
* Fix channel contracts tests
* chore(release): Bump version to 6.0.0
* chore(release): Adjust CHANGELOG. Regenerate lock file. Regenerate docs
* chore(release): Force Jenkins
* chore(Test): Adjust timeout for pollQuery test
* chrome(test): enable State chanel tests
* chrome(test): fix oracle pollQuery
---
CHANGELOG.md | 26 +-
docs/api/ae.md | 20 +-
docs/api/ae/aens.md | 77 +-
docs/api/ae/contract.md | 4 +-
docs/api/ae/oracle.md | 5 +-
docs/api/chain.md | 139 +-
docs/api/chain/node.md | 13 +-
docs/api/contract.md | 71 +-
docs/api/tx.md | 74 +-
docs/api/tx/tx.md | 60 +
docs/api/utils/crypto.md | 5 +-
es/ae/aens.js | 61 +-
es/ae/oracle.js | 2 +-
package-lock.json | 3153 ++++++++++++-----------------------
package.json | 2 +-
test/integration/channel.js | 2 +-
test/integration/oracle.js | 7 +-
17 files changed, 1411 insertions(+), 2310 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d7567eadeb..8646505034 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,27 @@
+# [6.0.0](https://github.com/aeternity/aepp-sdk-js/compare/4.7.0...6.0.0) (2019-10-16)
+
+
+### Code Refactoring
+
+* **SPEND:** Add additional validation for recipient ([#715](https://github.com/aeternity/aepp-sdk-js/issues/715)) ([c1854bf](https://github.com/aeternity/aepp-sdk-js/commit/c1854bf))
+
+
+### Features
+
+* **State Channels:** make state channels compatible with node v5.0.0β¦ ([#688](https://github.com/aeternity/aepp-sdk-js/issues/688)) ([23936f5](https://github.com/aeternity/aepp-sdk-js/commit/23936f5)), closes [#632](https://github.com/aeternity/aepp-sdk-js/issues/632) [#653](https://github.com/aeternity/aepp-sdk-js/issues/653) [#658](https://github.com/aeternity/aepp-sdk-js/issues/658) [#660](https://github.com/aeternity/aepp-sdk-js/issues/660) [#680](https://github.com/aeternity/aepp-sdk-js/issues/680) [#693](https://github.com/aeternity/aepp-sdk-js/issues/693) [#687](https://github.com/aeternity/aepp-sdk-js/issues/687)
+* **AENS:** Change tld for Lima from `aet` to `chain` ([#714](https://github.com/aeternity/aepp-sdk-js/issues/714)) ([323ef6a](https://github.com/aeternity/aepp-sdk-js/commit/323ef6a))
+* **AENS:** Implement name `bid` function ([#706](https://github.com/aeternity/aepp-sdk-js/pull/706)))
+* **AENS:** auction name fee calculation. Name fee validation and calculation in `claim/bid` ([#706](https://github.com/aeternity/aepp-sdk-js/pull/706))
+* **AENS:** Add `nameId` computation function (#709) ([#706](https://github.com/aeternity/aepp-sdk-js/pull/706))
+
+
+### BREAKING CHANGES
+
+* **AENS:** Change `tld` for Lima from `.aet` to `.chain`
+
+
+
+
# [5.0.0](https://github.com/aeternity/aepp-sdk-js/compare/4.7.0...5.0.0) (2019-10-04)
@@ -1080,4 +1104,4 @@ fix(AEP exampe): Fix contract in AEPP example
### Bug Fixes
-* **Chore** More consistent code examples
\ No newline at end of file
+* **Chore** More consistent code examples
diff --git a/docs/api/ae.md b/docs/api/ae.md
index 41686321d7..691907d43f 100644
--- a/docs/api/ae.md
+++ b/docs/api/ae.md
@@ -28,9 +28,9 @@ Attempting to create instances from the Stamp without overwriting all
abstract methods using composition will result in an exception.
Ae objects are the composition of three basic building blocks:
-* [Tx](#exp_module_@aeternity/aepp-sdk/es/tx--Tx)
+* [module:@aeternity/aepp-sdk/es/tx--Tx](module:@aeternity/aepp-sdk/es/tx--Tx)
* [Account](#exp_module_@aeternity/aepp-sdk/es/account--Account)
-* [Chain](#exp_module_@aeternity/aepp-sdk/es/chain--Chain)
+* [module:@aeternity/aepp-sdk/es/chain--Chain](module:@aeternity/aepp-sdk/es/chain--Chain)
Only by providing the joint functionality of those three, most more advanced
operations, i.e. the ones with actual use value on the chain, become
available.
@@ -49,22 +49,6 @@ available.
Remove all listeners for RPC
**Kind**: instance method of [`Ae`](#exp_module_@aeternity/aepp-sdk/es/ae--Ae)
-
-
-#### ae.send(tx, [options]) β `String` \| `String`
-Sign and post a transaction to the chain
-
-**Kind**: instance method of [`Ae`](#exp_module_@aeternity/aepp-sdk/es/ae--Ae)
-**Returns**: `String` \| `String` - Transaction or transaction hash
-**Category**: async
-**rtype**: `(tx: String, options: Object) => Promise[String]`
-
-| Param | Type | Default | Description |
-| --- | --- | --- | --- |
-| tx | `String` | | Transaction |
-| [options] | `Object` | {}
| options - Options |
-| [options.verify] | `Object` | | verify - Verify transaction before broadcast, throw error if not valid |
-
#### ae.spend(amount, recipientId, options) β `String` \| `String`
diff --git a/docs/api/ae/aens.md b/docs/api/ae/aens.md
index 3190ef29c5..3e4d65f561 100644
--- a/docs/api/ae/aens.md
+++ b/docs/api/ae/aens.md
@@ -17,13 +17,13 @@ import Aens from '@aeternity/aepp-sdk/es/ae/aens'
* _global_
* [exports.isNameValid(name, [throwError])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--exports.isNameValid) β β
* _instance_
- * [.update(nameId, target, options)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--update) β `Object` β
- * [.query(name)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--query) β `Promise.<Object>` β
- * [.claim(name, salt, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--claim) β `Promise.<Object>` β
- * [.preclaim(name, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--preclaim) β `Promise.<Object>` β
* _async_
+ * [.update(nameId, target, options)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--update) β `Object` β
* [.transfer(nameId, account, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--transfer) β `Promise.<Object>` β
- * [.revoke(nameId, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--revoke) β `Promise.<Object>` β
+ * [.query(name, opt)](#exp_module_@aeternity/aepp-sdk/es/ae/aens--query) β `Promise.<Object>` β
+ * [.claim(name, salt, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--claim) β `Promise.<Object>` β
+ * [.preclaim(name, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--preclaim) β `Promise.<Object>` β
+ * [.bid(name, nameFee, [options])](#exp_module_@aeternity/aepp-sdk/es/ae/aens--bid) β `Promise.<Object>` β
@@ -64,6 +64,7 @@ Is name valid
Update an aens entry
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
+**Category**: async
| Param | Description |
| --- | --- |
@@ -71,16 +72,32 @@ Update an aens entry
| target | new target |
| options | |
+
+
+### .transfer(nameId, account, [options]) β `Promise.<Object>` β
+Transfer a domain to another account
+
+**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
+**Category**: async
+
+| Param | Type | Default |
+| --- | --- | --- |
+| nameId | `String` | |
+| account | `String` | |
+| [options] | `Object` | {}
|
+
-### .query(name) β `Promise.<Object>` β
+### .query(name, opt) β `Promise.<Object>` β
Query the status of an AENS registration
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
+**Category**: async
-| Param | Type |
-| --- | --- |
-| name | `string` |
+| Param | Type | Description |
+| --- | --- | --- |
+| name | `string` | |
+| opt | `Object` | Options |
@@ -90,12 +107,14 @@ preclaim step
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
**Returns**: `Promise.<Object>` - the result of the claim
+**Category**: async
-| Param | Type | Default |
-| --- | --- | --- |
-| name | `String` | |
-| salt | `String` | |
-| [options] | `Record` | {}
|
+| Param | Type | Default | Description |
+| --- | --- | --- | --- |
+| name | `String` | | |
+| salt | `Number` | | |
+| [options] | `Record` | {}
| |
+| [options.nameFee] | `Number` \| `String` | | Name Fee |
@@ -103,36 +122,24 @@ preclaim step
Preclaim a name. Sends a hash of the name and a random salt to the node
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
+**Category**: async
| Param | Type | Default |
| --- | --- | --- |
| name | `string` | |
| [options] | `Record` | {}
|
-
-
-### .transfer(nameId, account, [options]) β `Promise.<Object>` β
-Transfer a domain to another account
-
-**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
-**Category**: async
-
-| Param | Type | Default |
-| --- | --- | --- |
-| nameId | `String` | |
-| account | `String` | |
-| [options] | `Object` | {}
|
-
-
+
-### .revoke(nameId, [options]) β `Promise.<Object>` β
-Revoke a domain
+### .bid(name, nameFee, [options]) β `Promise.<Object>` β
+Bid to name auction
**Kind**: instance method of [`@aeternity/aepp-sdk/es/ae/aens`](#module_@aeternity/aepp-sdk/es/ae/aens)
**Category**: async
-| Param | Type | Default |
-| --- | --- | --- |
-| nameId | `String` | |
-| [options] | `Object` | {}
|
+| Param | Type | Default | Description |
+| --- | --- | --- | --- |
+| name | `String` | | Domain name |
+| nameFee | `String` \| `Number` | | Name fee amount |
+| [options] | `Record` | {}
| |
diff --git a/docs/api/ae/contract.md b/docs/api/ae/contract.md
index fd8874c53c..789aee7513 100644
--- a/docs/api/ae/contract.md
+++ b/docs/api/ae/contract.md
@@ -6,6 +6,7 @@ Contract module - routines to interact with the Γ¦ternity contract
High level documentation of the contracts are available at
https://github.com/aeternity/protocol/tree/master/contracts and
+**Export**: Contract
**Example**
```js
import Contract from '@aeternity/aepp-sdk/es/ae/contract' (Using tree-shaking)
@@ -215,10 +216,7 @@ Compile contract source code
| source | `String` | | Contract sourece code |
| [options] | `Object` | {}
| Transaction options (fee, ttl, gas, amount, deposit) |
| [options.filesystem] | `Object` | {}
| Contract external namespaces map* @return {Promise