Skip to content

Commit

Permalink
Realign 7.0.0 (#889)
Browse files Browse the repository at this point in the history
* Release/6.0.2 (#741)

* 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

* Update @aeternity/aepp-sdk in group default to the latest version 🚀 (#720)

* fix(package): update @aeternity/aepp-sdk to version 6.0.0

* fix(package): update @aeternity/aepp-sdk to version 6.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 6.0.0 (#719)

* 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

* Update libsodium-wrappers-sumo to the latest version 🚀 (#721)

* fix(package): update libsodium-wrappers-sumo to version 0.7.6

* chore(package): update lockfile package-lock.json

* Keystore: Make usable in nodejs@10 and below (#726)

* keystore: Fix name in example

* Add missed Keystore module export

* keystore: Add example for versions of nodejs that don't supports esm

* fix(aens): added lower case transformation for aens names (#730)

* fix(aens): added lower case transformation for aens names

commitment Id has been generated incorrectly because names have not been transformed to a lower case

* fix(aens): removed unnecessary lower case transformation during the name encoding process

* fix(aens): disable test for spend by name

#728

* fix(aens): fixed namespace for claim transactions

#728

* removed empty lines

* style(changelog): added whitespaces to separate changelog sections

* name claim: Revert ignoring waitMined from user passed options (#727)

Reverts changes in 8850900#diff-bd3d95ffcb66b185645d812b7d5ba656L179-R176

* Bump version to 6.0.2

* Regenerate lock file. Regenerate docs

* removed empty lines

* style(changelog): added whitespaces to separate changelog sections

* 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

* 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

* Realign 6.0.0 (#719)

* 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

* Update libsodium-wrappers-sumo to the latest version 🚀 (#721)

* fix(package): update libsodium-wrappers-sumo to version 0.7.6

* chore(package): update lockfile package-lock.json

* Update commander to the latest version 🚀 (#743)

* fix(package): update commander to version 4.0.0

* chore(package): update lockfile package-lock.json

* Update vue-loader in group default to the latest version 🚀 (#745)

* chore(package): update vue-loader to version 15.7.2

* chore(package): update vue-loader to version 15.7.2

* Update rlp to the latest version 🚀 (#744)

* fix(package): update rlp to version 2.2.4

* chore(package): update lockfile package-lock.json

* fix(AENS): auction end block calculation (#746)

* fix(AENS): auction end block calculation

* chore(build): Update node to 5.0.2

* fix(AENS): Fix `produceNameId` function(Make name lowercase). Enable … (#750)

* fix(AENS): Fix `produceNameId` function(Make name lowercase). Enable spend by name test

* chore(Test): Increase amount of tokens for AENS tests

* aensQuery: Fix default value of pointers field (#735)

* Update @aeternity/aepp-sdk in group default to the latest version 🚀 (#733)

* fix(package): update @aeternity/aepp-sdk to version 6.0.1

* fix(package): update @aeternity/aepp-sdk to version 6.0.1

* 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

* Remove extra eslint exceptions (#729)

* Update babel7 in group default to the latest version 🚀 (#754)

* chore(package): update @babel/cli to version 7.7.0

* chore(package): update @babel/cli to version 7.7.0

* chore(package): update @babel/cli to version 7.7.0

* chore(package): update @babel/core to version 7.7.0

* chore(package): update @babel/core to version 7.7.0

* chore(package): update @babel/core to version 7.7.0

* chore(package): update @babel/node to version 7.7.0

* chore(package): update @babel/node to version 7.7.0

* chore(package): update @babel/node to version 7.7.0

* chore(package): update @babel/preset-env to version 7.7.0

* chore(package): update @babel/preset-env to version 7.7.0

* chore(package): update @babel/preset-env to version 7.7.0

* chore(package): update @babel/register to version 7.7.0

* chore(package): update @babel/register to version 7.7.0

* chore(package): update @babel/register to version 7.7.0

* chore(package): update @babel/runtime to version 7.7.0

* chore(package): update @babel/runtime to version 7.7.0

* chore(package): update @babel/runtime to version 7.7.0

* chore(package): update lockfile package-lock.json

* 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

* feat(state channels): allow to pass metadata to transfer update (#755)

* feat(state channels): allow off chain updates to be cancelled with custom error code (#753)

* fix(state channels): wait for connection to be established before sending generic message (#723)

* feat(state channels): add .off method

* fix(state channels): wait for connection to be established before sending generic message

* feat(state channels): add round method (#763)

* feat(ACI): Add validation for contractAddress (#764)

* feat(ACI): Add validation for contractAddress and provided bytecode with corresponding one on-chain

* feat(ACI): Add tests

* feat(AENS): Add nameFee validation to TxValidator (#765)

*  feat(Crypto): Implement asymmetric encoding/decoding using `tweennacl` and `Ed25519` keypair (#466)

* feat(Add nacl box implementtation): ]

* feat(Crypto): Implement asymetric encoding/decoding using tweennacl and Ed25519 keypair

Converts a 32-byte Ed25519 public key into a 32-byte Curve25519 public key.Converts a 64-byte
Ed25519 secret key (or just the first 32-byte part of it, which is the secret value) into a 32-byte
Curve25519 secret key

#465

* chore(merge): Fix conflict

* feat(Contract): Add ability to pass arguments or callData for contract `deploy/call/callStatic` API (#768)

* Update babel7 in group default to the latest version 🚀 (#771)

* chore(package): update @babel/core to version 7.7.2

* chore(package): update @babel/core to version 7.7.2

* chore(package): update @babel/core to version 7.7.2

* chore(package): update @babel/preset-env to version 7.7.1

* chore(package): update @babel/preset-env to version 7.7.1

* chore(package): update @babel/preset-env to version 7.7.1

* chore(package): update @babel/runtime to version 7.7.2

* chore(package): update @babel/runtime to version 7.7.2

* chore(package): update @babel/runtime to version 7.7.2

* chore(package): update lockfile package-lock.json

* 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

* feat(AENS): Increase default nameTtl (#775)

* feat(AENS): Increase default nameTtl

* feat(AENS): Increase default nameTtl

* feat(Http): Assign error object to http error (#770)

* feat(state channels): make state channels compatible with node v5.1.0… (#776)

* feat(state channels): make state channels compatible with node v5.1.0-rc.1

* Fix lint error

* docs(Examples): Fix contract example (#778)

* fix(TxHelpers): Use BigNumber in auction end block calculation

* docs(Helpers): Add missed jsdocs

* chore(release): Bump version. Regenerate docs and CHANGELOG

* removed empty lines

* style(changelog): added whitespaces to separate changelog sections

*  feat(Crypto): Implement asymmetric encoding/decoding using `tweennacl` and `Ed25519` keypair (#466)

* feat(Add nacl box implementtation): ]

* feat(Crypto): Implement asymetric encoding/decoding using tweennacl and Ed25519 keypair

Converts a 32-byte Ed25519 public key into a 32-byte Curve25519 public key.Converts a 64-byte
Ed25519 secret key (or just the first 32-byte part of it, which is the secret value) into a 32-byte
Curve25519 secret key

#465

* chore(merge): Fix conflict

* feat(Http): Assign error object to http error (#770)

* docs(Examples): Fix contract example (#778)

* feat(KeyStore): Remove `argon2` package, use `libsodium` for both browser and node (#782)

* fix(ACI): Disable bytecode check for source and code on-chain (#783)

* fix(ACI): Disable bytecode check for source and code on-chain

* fix(ACI): Disable bytecode check for source and code on-chain

* chore(release): Regenerate docs

* fix(Composition): Chain composition

* fix(Composition): Chain composition

* fix(Channel): 5.2.0 compatibility

* Fix lint error

* chore(release): Bump version. Generate CHANGELOG

* Fix internal.js

* chore(release): Point docker to node 5.2.0

* chore(release): Bump package, regenerate lock and CHANGELOG

* chore(release): Update CHANGELOG

* chore(release): Update CHANGELOG

* chore(release): Changelog

* chore(release): Bump version to 7.0.0-next.2
Regenerate docs
Regenerate lock file

* chore(release): generate lock file

* chore(release): Generate CHANGELOG

* chore(release): Generate CHANGELOG

* chore(release): Regenerate lock file

* chore(release): bump version. generate CHANGELOG. Regenerate docs

* chore(release): Adjust readme

* chore(release): Adjust readme

Co-authored-by: Michał Powaga <michalpowaga13@gmail.com>
Co-authored-by: Taras Herasymchuk <52157472+tarasherasymchuk@users.noreply.github.com>
Co-authored-by: greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Co-authored-by: Denis Davidyuk <denis_davidyuk@hotmail.com>
Co-authored-by: Shubhendu Shekhar <9253059+shekhar-shubhendu@users.noreply.github.com>
  • Loading branch information
6 people committed Jan 31, 2020
1 parent 4261503 commit c1278de
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 34 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
# [7.0.0](https://github.com/aeternity/aepp-sdk-js/compare/6.0.1...7.0.0) (2020-01-31)


### Bug Fixes

* **AEX-2:** Fix firefox compatibility issue ([#882](https://github.com/aeternity/aepp-sdk-js/issues/882)) ([2e16e10](https://github.com/aeternity/aepp-sdk-js/commit/2e16e10))


### Features

* **Chain:** add new method `waitFOrTxConfirm`. Add new option { confirm: 3 } to all of high lvl SDK API. Add tests. Adjust docs ([#874](https://github.com/aeternity/aepp-sdk-js/issues/874)) ([43528f9](https://github.com/aeternity/aepp-sdk-js/commit/43528f9))
* **Compiler:** Add new compiler methods API ([#875](https://github.com/aeternity/aepp-sdk-js/issues/875)) ([a939395](https://github.com/aeternity/aepp-sdk-js/commit/a939395))
* **network:** Throw error when can not get networkId ([#863](https://github.com/aeternity/aepp-sdk-js/issues/863)) ([41b7bd1](https://github.com/aeternity/aepp-sdk-js/commit/41b7bd1))


### Docs

* **Guide** [Add 7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/migration-7.0.0.md)
* **Guide:** Add [Oracle](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/oracle-usage.md), [AENS](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/aens-usage.md) and [Contract](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/contract-aci-usage.md) guides


### BREAKING CHANGES

Please check out [7.0.0 migration guide](https://github.com/aeternity/aepp-sdk-js/blob/develop/docs/guides/migration/migration-7.0.0.md)

This release include all changes from [7.0.0-next.1](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.1), [7.0.0-next.2](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.2), [7.0.0-next.3](https://github.com/aeternity/aepp-sdk-js/releases/tag/7.0.0-next.3)



# [7.0.0-next.3](https://github.com/aeternity/aepp-sdk-js/compare/6.0.1...7.0.0-next.3) (2020-01-22)


Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ You can use this URL with any releasee on [npmjs](https://www.npmjs.com/package/
### Contract Usage
- [Contract ACI](guides/contract-aci-usage.md)
- [AENS usage](guides/aens-usage.md)
- [AENS usage](guides/racle-usage.md)


## Examples
Expand Down
16 changes: 0 additions & 16 deletions docs/api/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Account from '@aeternity/aepp-sdk/es/account'

* [@aeternity/aepp-sdk/es/account](#module_@aeternity/aepp-sdk/es/account)
* [Account([options])](#exp_module_@aeternity/aepp-sdk/es/account--Account)`Object`
* [.signTransaction(tx, opt)](#module_@aeternity/aepp-sdk/es/account--Account+signTransaction)`String`
* [.getNetworkId()](#module_@aeternity/aepp-sdk/es/account--Account+getNetworkId)`String`
* *[.sign(data)](#module_@aeternity/aepp-sdk/es/account--Account+sign)`String`*
* *[.address()](#module_@aeternity/aepp-sdk/es/account--Account+address)`String`*
Expand All @@ -36,21 +35,6 @@ signing key pair.
| [options] | `Object` | <code>{}</code> | Initializer object |
| options.networkId | `String` | | NETWORK_ID using for signing transaction's |

<a id="module_@aeternity/aepp-sdk/es/account--Account+signTransaction"></a>

#### account.signTransaction(tx, opt) ⇒ `String`
Sign encoded transaction

**Kind**: instance method of [`Account`](#exp_module_@aeternity/aepp-sdk/es/account--Account)
**Returns**: `String` - Signed transaction
**Category**: async
**rtype**: `(tx: String) => tx: Promise[String], throws: Error`

| Param | Type | Description |
| --- | --- | --- |
| tx | `String` | Transaction to sign |
| opt | `Object` | Options |

<a id="module_@aeternity/aepp-sdk/es/account--Account+getNetworkId"></a>

#### account.getNetworkId() ⇒ `String`
Expand Down
6 changes: 3 additions & 3 deletions docs/api/utils/aepp-wallet-communication/rpc/aepp-rpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import ContentScriptBridge from '@aeternity/aepp-sdk/es/utils/aepp-wallet-commun
* [@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc)
* [exports.AeppRpc(param, onAddressChange, onDisconnect, onNetworkChange, connection)](#exp_module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc)`Object`
* [.connectToWallet(connection)](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+connectToWallet)`void`
* [.disconnectWallet(force)](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+disconnectWallet)`void`
* [.disconnectWallet(sendDisconnect)](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+disconnectWallet)`void`
* [.askAddresses()](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+askAddresses)`Promise`
* [.subscribeAddress(type, value)](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+subscribeAddress)`Promise`
* [.signTransaction()](#module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+signTransaction)`Promise.&lt;String&gt;`
Expand Down Expand Up @@ -49,15 +49,15 @@ Connect to wallet

<a id="module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+disconnectWallet"></a>

#### exports.AeppRpc.disconnectWallet(force) ⇒ `void`
#### exports.AeppRpc.disconnectWallet(sendDisconnect) ⇒ `void`
Disconnect from wallet

**Kind**: instance method of [`exports.AeppRpc`](#exp_module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc)
**rtype**: `(force: Boolean = false) => void`

| Param | Type | Default | Description |
| --- | --- | --- | --- |
| force | `Boolean` | <code>false</code> | Force sending close connection message |
| sendDisconnect | `Boolean` | <code>false</code> | Force sending close connection message |

<a id="module_@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/rpc/aepp-rpc--exports.AeppRpc+askAddresses"></a>

Expand Down
153 changes: 139 additions & 14 deletions docs/examples/node/aecrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,40 @@ const promptSchema = {




## Key Extraction (from Node nodes)




```js
function extractReadableKeys (dir, options) {
const pwd = options.input
prompt.start()
prompt.get(promptSchema, (_, { password }) => {
const key = fs.readFileSync(path.join(pwd, dir, 'sign_key'))
const pubKey = fs.readFileSync(path.join(pwd, dir, 'sign_key.pub'))

const decrypted = Crypto.decryptPrivateKey(password, key)

const privateHex = Buffer.from(decrypted).toString('hex')
const decryptedPub = Crypto.decryptPubKey(password, pubKey)

console.log(`Private key (hex): ${privateHex}`)
console.log(`Public key (base check): ak_${Crypto.encodeBase58Check(decryptedPub)}`)
console.log(`Public key (hex): ${decryptedPub.toString('hex')}`)
})
}


```







## Key Pair Generation


Expand All @@ -113,9 +147,19 @@ const promptSchema = {
```js
function generateKeyPair (name, { output }) {
const { publicKey, secretKey } = Crypto.generateKeyPair()
return { publicKey, secretKey }


const data = [
[path.join(output, name), secretKey],
[path.join(output, `${name}.pub`), publicKey]
]

data.forEach(([path, data]) => {
fs.writeFileSync(path, data)
console.log(`Wrote ${path}`)
})
}


```


Expand All @@ -126,27 +170,94 @@ function generateKeyPair (name, { output }) {

## Transaction Signing

This function shows how to sign an æternity
This function shows how to use a compliant private key to sign an æternity
transaction and turn it into an RLP-encoded tuple ready for mining




```js
function signTx (tx, secretKey) {
function signTx (tx, privKey) {
if (!tx.match(/^tx_.+/)) {
throw Error('Not a valid transaction')
}
secretKey = Buffer.from(keyPair.secretKey, 'hex')
const rlpBinaryTx = Crypto.decodeBase64Check(Crypto.assertedType(tx, 'tx'))
// Prepend `NETWORK_ID` to begin of data binary
const txWithNetworkId = Buffer.concat([Buffer.from(program.networkId), rlpBinaryTx])

const binaryKey = (() => {
if (program.file) {
return fs.readFileSync(program.file)
} else if (privKey) {
return Buffer.from(privKey, 'hex')
} else {
throw Error('Must provide either [privkey] or [file]')
}
})()

const decryptedKey = program.password ? Crypto.decryptKey(program.password, binaryKey) : binaryKey


```
Split the base58Check part of the transaction
```js
const base58CheckTx = tx.split('_')[1]

```
... and sign the binary create_contract transaction
const signatures = [Crypto.sign(txWithNetworkId, secretKey)]
const { tx } = buildTx({ encodedTx: rlpBinaryTx, signatures }, TX_TYPE.signed)
console.log('Signed transaction: ' + tx)
```js
const binaryTx = Crypto.decodeBase58Check(base58CheckTx)

const signature = Crypto.sign(binaryTx, decryptedKey)


```
the signed tx deserializer expects a 4-tuple:
<tag, version, signatures_array, binary_tx>
```js
const unpackedSignedTx = [
Buffer.from([11]),
Buffer.from([1]),
[Buffer.from(signature)],
binaryTx
]

console.log(Crypto.encodeTx(unpackedSignedTx))
}
````


```




Expand All @@ -165,6 +276,8 @@ function unpackTx (tx) {
const deserializedTx = TxBuilder.unpackTx(tx)
console.log(JSON.stringify(deserializedTx, undefined, 2))
}


```


Expand All @@ -183,10 +296,22 @@ The `commander` library provides maximum command line parsing convenience.
```js
program.version('0.1.0')

program
.command('decrypt <directory>')
.description('Decrypts public and private key to readable formats for testing purposes')
.option('-i, --input [directory]', 'Directory where to look for keys', '.')
.action(extractReadableKeys)

program
.command('genkey <keyname>')
.description('Generate keypair')
.option('-o, --output [directory]', 'Output directory for the keys', '.')
.action(generateKeyPair)

program
.command('sign <tx> <priv>')
.option('--networkId [networkId]', 'Network Id')
.command('sign <tx> [privkey]')
.option('-p, --password [password]', 'password of the private key')
.option('-f, --file [file]', 'private key file')
.action(signTx)

program
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aeternity/aepp-sdk",
"version": "7.0.0-next.3",
"version": "7.0.0",
"description": "SDK for the æternity blockchain",
"main": "dist/aepp-sdk.js",
"browser": "dist/aepp-sdk.browser.js",
Expand Down

0 comments on commit c1278de

Please sign in to comment.