# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [8.0.2](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@8.0.1...@energyweb/device-registry@8.0.2) (2021-08-30)


### Bug Fixes

* **deps:** update dependency dotenv to v10 ([c1b44b7](https://github.com/energywebfoundation/origin/commit/c1b44b765b65c94129fb8be7131236de326fac45))
* **deps:** update dependency dotenv to v9 ([6b97197](https://github.com/energywebfoundation/origin/commit/6b971972a5633ba0417c746256d28b96e582028d))
* **deps:** update dependency dotenv to v9.0.2 ([711307a](https://github.com/energywebfoundation/origin/commit/711307a49b0a8a18879fcc80b6127708c2b0953d))
* **deps:** update dependency ethers to v5.1.3 ([e7f4abb](https://github.com/energywebfoundation/origin/commit/e7f4abb8109303814e5727976732c528dcfa342d))
* **deps:** update dependency ethers to v5.1.4 ([71f379b](https://github.com/energywebfoundation/origin/commit/71f379b020e8e6bcd1b4b6f117d27e9babc6f93c))
* **deps:** update ethers ([785e3ef](https://github.com/energywebfoundation/origin/commit/785e3efbe95fbde1984d80d8a50293d123364803))
* **deps:** update ethers ([d40f585](https://github.com/energywebfoundation/origin/commit/d40f585815ede90cc3ce1a901aa35bb3e9ebde3d))
* **deps:** update ethers to v5.3.0 ([72c970e](https://github.com/energywebfoundation/origin/commit/72c970e69d220250e7d9d3f36ac653a3610d6825))
* revert ethers versions to working and disable updates ([49753f0](https://github.com/energywebfoundation/origin/commit/49753f0aed3f5e32e861b7bbe1d4a85bd900dce9))





## [8.0.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@8.0.0...@energyweb/device-registry@8.0.1) (2021-03-23)


### Bug Fixes

* **deps:** update dependency ethers to v5.0.31 ([2c4a3a0](https://github.com/energywebfoundation/origin/commit/2c4a3a002e113ab28d1a452ed77b1b4b2a8436e6))





# [8.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@7.0.3...@energyweb/device-registry@8.0.0) (2021-02-12)


### Bug Fixes

* **deps:** update dependency ethers to v5.0.27 ([4a152d8](https://github.com/energywebfoundation/origin/commit/4a152d83e97f9e0b08ef38071a619005e27d5b7b))
* **deps:** update dependency ethers to v5.0.29 ([149041b](https://github.com/energywebfoundation/origin/commit/149041b4ca3648f1decf9e1acb5f7bb5d6fd721a))


### chore

* **device-registry:** replace Organization with id ([da94652](https://github.com/energywebfoundation/origin/commit/da94652a283dd729a21df3f90d6d647850437f5c))


### BREAKING CHANGES

* **device-registry:** Organization is not longer a member of ProducingDevice.Entity





## [7.0.3](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@7.0.2...@energyweb/device-registry@7.0.3) (2020-12-04)

**Note:** Version bump only for package @energyweb/device-registry





## [7.0.2](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@7.0.1...@energyweb/device-registry@7.0.2) (2020-11-30)

**Note:** Version bump only for package @energyweb/device-registry





## [7.0.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@7.0.0...@energyweb/device-registry@7.0.1) (2020-11-20)


### Bug Fixes

* **deps:** update dependency ethers to v5.0.15 ([7205cfd](https://github.com/energywebfoundation/origin/commit/7205cfd3b823730beed77fa8195b7c9c06898a88))





# [7.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.9...@energyweb/device-registry@7.0.0) (2020-10-02)


### Bug Fixes

* **device-registry:** smart meter reads serialization ([e5e9877](https://github.com/energywebfoundation/origin/commit/e5e987717960a36c35022cd35577ef2e522c8092))


### Features

* **device-registry:** redefined organization interfaces ([b2ec6ed](https://github.com/energywebfoundation/origin/commit/b2ec6ed7b8234b18128bd552842d58366ea56780))


### BREAKING CHANGES

* **device-registry:** IOrganization replaced with IPublicOrganization and IFullOrganization





## [6.2.9](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.8...@energyweb/device-registry@6.2.9) (2020-08-25)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.8](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.7...@energyweb/device-registry@6.2.8) (2020-08-12)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.7](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.6...@energyweb/device-registry@6.2.7) (2020-08-10)


### Bug Fixes

* **deps:** update dependency ethers to v5.0.8 ([c69bde0](https://github.com/energywebfoundation/origin/commit/c69bde05c4f0eba5dbc49833f266af24c84c0187))





## [6.2.6](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.5...@energyweb/device-registry@6.2.6) (2020-08-06)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.5](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.4...@energyweb/device-registry@6.2.5) (2020-07-16)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.4](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.3...@energyweb/device-registry@6.2.4) (2020-07-08)


### Bug Fixes

* **deps:** update dependency winston to v3.3.0 ([12f111e](https://github.com/energywebfoundation/origin/commit/12f111ed16274e40d9ccbb4c3d6f9d8d222cb2fe))
* **deps:** update dependency winston to v3.3.3 ([d66ad8e](https://github.com/energywebfoundation/origin/commit/d66ad8e4f8f65a8c6bed6ec95303a175771ed230))





## [6.2.3](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.2...@energyweb/device-registry@6.2.3) (2020-06-16)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.2](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.1...@energyweb/device-registry@6.2.2) (2020-06-16)

**Note:** Version bump only for package @energyweb/device-registry





## [6.2.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.2.0...@energyweb/device-registry@6.2.1) (2020-05-29)

**Note:** Version bump only for package @energyweb/device-registry





# [6.2.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.1.0...@energyweb/device-registry@6.2.0) (2020-05-15)


### Bug Fixes

* store [] as the default for device.files ([52e5fcc](https://github.com/energywebfoundation/origin/commit/52e5fccdeb303133b3db9413fc317e4a1c60ebca))


### Features

* add meterStats to Device for un/certified meter readings reference ([627d785](https://github.com/energywebfoundation/origin/commit/627d7855506f52cb70ee083844ef2664b9227a0b))





# [6.1.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@6.0.0...@energyweb/device-registry@6.1.0) (2020-04-24)


### Features

* add support for device grid operator property ([f6d77f3](https://github.com/energywebfoundation/origin/commit/f6d77f327a7676c3e742cc8a022e5c085cf66e39))





# [6.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@5.1.1...@energyweb/device-registry@6.0.0) (2020-04-08)


### Bug Fixes

* adjust application to off-chain device registry ([a3583fb](https://github.com/energywebfoundation/origin/commit/a3583fb6c80604c88ef69724c69229a74320ff95))
* remove MarketUser from UI ([9d15489](https://github.com/energywebfoundation/origin/commit/9d15489fa976fb9861337de0b8cbc56a06477203))


### chore

* **device-registry:** remove all off-chain components ([d11c834](https://github.com/energywebfoundation/origin/commit/d11c83486a89eab252a88dcf79054383f9ea5152))


### Features

* add ability to autogenerate external device ids ([822b752](https://github.com/energywebfoundation/origin/commit/822b7523730b726aeb2f7f09922d1742f3faa075))


### BREAKING CHANGES

* **device-registry:** The device registry is now entirely on-chain





## [5.1.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@5.1.0...@energyweb/device-registry@5.1.1) (2020-03-16)


### Bug Fixes

* **device-registry:** return empty when no smart meter readings ([924f9f1](https://github.com/energywebfoundation/origin/commit/924f9f180485c18891c5cfdeb973855235d565da))
* fetch all device smart meter readings only on-demand ([0708917](https://github.com/energywebfoundation/origin/commit/07089170e80de59503c299755f5bdf5e26005a3b))





# [5.1.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@5.0.1...@energyweb/device-registry@5.1.0) (2020-03-02)


### Features

* Off-chain smart meter readings ([4dfbff0](https://github.com/energywebfoundation/origin/commit/4dfbff036b20578f6c2d960328a52deb0f0dff15))





## [5.0.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@5.0.0...@energyweb/device-registry@5.0.1) (2020-02-12)

**Note:** Version bump only for package @energyweb/device-registry





# [5.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@4.0.0...@energyweb/device-registry@5.0.0) (2020-02-04)


### Bug Fixes

* allow Device Manager to add new devices ([3caee18](https://github.com/energywebfoundation/origin/commit/3caee187814433debca8e83b24949d1765c1b750))
* deviceLogic tests ([c3f7af7](https://github.com/energywebfoundation/origin/commit/c3f7af7720fa959b3a582ceed16e8e443b580708))


### Features

* Move some Device properties to off-chain storage, remove on-chain proofs + remove unused Consuming Devices definition ([8b9424e](https://github.com/energywebfoundation/origin/commit/8b9424e3ed826f39db989bb8e2c7495c682a4c38))


### BREAKING CHANGES

* The Device.Entity API has changed.





# [4.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@3.0.0...@energyweb/device-registry@4.0.0) (2020-01-31)


### chore

* **device-registry:** rm locationservice logic ([0b669b1](https://github.com/energywebfoundation/origin/commit/0b669b18f8135d95ad89da64d2f2a4933dc6028b))


### Features

* add ability to add device group ([d01a9ed](https://github.com/energywebfoundation/origin/commit/d01a9ed1c7e474635f4ff342844fb94a8b4c3bc9))


### BREAKING CHANGES

* **device-registry:** LocationService has been moved to utils-general package





# [3.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@2.0.1...@energyweb/device-registry@3.0.0) (2020-01-17)


### chore

* **device-registry:** rename power property capacityWh to capacityInW ([48bfdf3](https://github.com/energywebfoundation/origin/commit/48bfdf335e4693af887bcba1ab497cb5a33f9324))


### BREAKING CHANGES

* **device-registry:** rename capacityWh to capacityInW





## [2.0.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@2.0.0...@energyweb/device-registry@2.0.1) (2020-01-07)

**Note:** Version bump only for package @energyweb/device-registry





# [2.0.0](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@1.0.2...@energyweb/device-registry@2.0.0) (2019-12-20)


### Features

* **device-registry:** add region and province offchain properties ([a98ceb2](https://github.com/energywebfoundation/origin/commit/a98ceb28fd7a7ff7da6253a0d4474846c30f04c4))
* **device-registry:** change device primary key to number instead of smart meter address ([dec7af9](https://github.com/energywebfoundation/origin/commit/dec7af9a6740c4641d87c50c01d4b501bec8fab4))
* **device-registry:** move LocationService to device-registry from utils-general ([5d7984b](https://github.com/energywebfoundation/origin/commit/5d7984b0897cfcd704947f0df6f5586f0b3a3685))
* **device-registry:** restrict device creation ([fc4cdb7](https://github.com/energywebfoundation/origin/commit/fc4cdb78858958af0ab73b1503da898db355a1b4))


### BREAKING CHANGES

* **device-registry:** add region and province offchain properties
* **device-registry:** change device primary key to number instead of smart meter address





## [1.0.2](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@1.0.1...@energyweb/device-registry@1.0.2) (2019-12-19)

**Note:** Version bump only for package @energyweb/device-registry





## [1.0.1](https://github.com/energywebfoundation/origin/compare/@energyweb/device-registry@1.0.0...@energyweb/device-registry@1.0.1) (2019-12-17)


### Bug Fixes

* **device-registry:** use default block range when fetching events ([64f49c3](https://github.com/energywebfoundation/origin/commit/64f49c3d315269a1325d495423a692c40269ef1f))





# 1.0.0 (2019-12-12)


* [FIX] Backend hash storing (#341) ([b239101](https://github.com/energywebfoundation/origin/commit/b239101f51cffd7e37c9ea51654a75804cf502ed)), closes [#341](https://github.com/energywebfoundation/origin/issues/341)


### BREAKING CHANGES

* Changed the API endpoints from http://example.url/<marketLogicAddress>/<entity>/<id> to http://example.url/<marketLogicAddress>/<entity>/<id>/<offChainDataHash>

* feat(utils-general): use the new URL structure when fetching off-chain data
* Changed the API endpoints of the backend from http://example.url/<marketLogicAddress>/<entity>/<id> to http://example.url/<marketLogicAddress>/<entity>/<id>/<offChainDataHash>

* chore(user-registry): adjust to breaking changes
* Updated User API endpoints of the backend from http://example.url/<marketLogicAddress>/<entity>/<id> to http://example.url/<marketLogicAddress>/<entity>/<id>/<offChainDataHash>

* chore(asset-registry): adjust to breaking changes
* Updated Asset API endpoints of the backend from http://example.url/<marketLogicAddress>/<entity>/<id> to http://example.url/<marketLogicAddress>/<entity>/<id>/<offChainDataHash>

* chore(origin): fix constructor weird formatting

* fix(market): storing off-chain data references on-chain
* New contracts for PurchasableCertificate + Updated Market API endpoints of the backend from http://example.url/<marketLogicAddress>/<entity>/<id> to http://example.url/<marketLogicAddress>/<entity>/<id>/<offChainDataHash>

* chore(event-listener): more understandable tests

* fix(event-listener): make scan interval faster for tests

* feat(origin-backend): use a simpler URL structure
* The URL structure of the API changed to only store hashes, omitting IDs, entity types and market lookup contracts used previously

* chore(origin-backend-client): use only POST methods instead of POST and PUT
* Use the .insert() method instead of .insertOrUpdate()

* chore(utils-general): use .insert instead of .insertOrUpdate

* fix(origin-backend): return 200 on POSTing the same entity

* chore(utils-general): remove abstract getUrl()

* chore(user-registry): remove specific getUrl()

* chore(device-registry): remove specific getUrl()

* chore(origin): remove specific getUrl()

* chore(market): remove specific getUrl()

* chore(monorepo): reorder test:serial

* fix(origin-backend): adjust tests to new POST behaviour

* chore(monorepo): Add an ADR for simplifying off-chain data storage
