Skip to content

Releases: Polkadex-Substrate/Polkadex

Release v5.1.3

03 Jul 14:45
Compare
Choose a tag to compare

Hotfix: stop Orderbook gossip

Release v5.1.2

22 Jun 02:02
Compare
Choose a tag to compare

What's Changed

Full Changelog: v5.1.1...v5.1.2

Release v5.1.1

21 Jun 04:22
Compare
Choose a tag to compare

v5 Runtime release.

What's Changed

Full Changelog: v5.1.0...v5.1.1

Release v5.1.0

16 Jun 01:12
Compare
Choose a tag to compare
  1. Fix for memory leak in v5.0.0
  2. Upgrades substrate version to v0.9.43
  3. Migration for Session keys

Release v5.0.0

07 Jun 04:03
Compare
Choose a tag to compare

Changelog

v5.0.0 - 2023-06-07

Added

  • thea-client crate (#412, [#709], [#728], [#729], [#730], [#732], [#733], [#748], [#750])
  • thea pallet (#597, #595, #669, [#749], [#750])
  • thea-message-handler pallet ([#709], [#749], [#750], [#756])
  • Github pull request template (#425)
  • pallet-ocex-lmp pallet (#434, #678, [#741], [#748], [#755], [#759]):
    • Weights (#486)
    • Tests (#479, [#748])
    • remove_proxy_account extrinsic (#489)
    • update_trading_pair extrinsic (#522)
    • Token allow-listing (#527)
    • set_balances extrinsic (#569)
    • set_snapshot extrinsic (#633, #631)
    • whitelist_orderbook_operator extrinsic (#680)
  • Test token provider pallet for testnet (#424)
  • chainbridge pallet (#411)
  • asset-handler pallet (#411, [#753])
  • polkadex-client crate (#505)
  • Whitelist tokens mechanism for the chainbridge (#523)
  • pallet-asset-handler-runtime-api crate to perform Get Balances RPC calls (#510, #528)
  • Automated release deployment (#590)
  • asset-handler pallet tests (#602, [#741])
  • PDEX token handler (#642)
  • liquidity pallet (#624)
  • rewards pallet (#622)
  • pallet-amm pallet (#634)
  • pallet-amm pallet benchmarks, weights, tests ([#705])
  • support pallet (#634)
  • router pallet (#634)
  • thea-executor pallet ([#706], [#707], [#741], [#757])
  • Node compiled binary as an artifact (via CI) to be fetched from other repositories for the testing purpose (#679)
  • Snapshot generation related logic (#681)
  • Orderbook client crate ([#693], [#736], [#748], [#755])
  • Orderbook client tests (#675, [#721])
  • API to check recovery state ([#688])
  • Feature to process withdrawals from the snapshot ([#687])
  • Signature verifier to process user actions (#680)
  • Calculations for rewards RPC ([#712])
  • RPC to fetch crowdloan reward information ([#711])
  • Runtime build check to the CI ([#715])
  • NoOpConnector for Dev mode ([#723])
  • Documentation for gossiping logic ([#735])
  • Changelog ([#747])
  • foreign_chain_url CLI argument ([#752])

Changed

  • Udon testnet genesis config (#423)
  • Added delay for withdrawals above a certain limit in the asset-handler pallet (#490)
  • pallet-ocex-lmp pallet:
    • In that how withdrawal takes place (#497)
    • Removed TradingPairStatus (#511)
    • Balance handling now uses Decimal instead of Balance (#516)
    • claim_withdraw extrinsic to make it fee-free (#556)
  • CI/CD to include formatter and clippy checks (#506)
  • CI to lint/check formatting of .toml files ([#760])
  • CI to test weights generation ([#760])
  • Fee collection mechanism so that only the orderbook council can call it (#515)
  • Error type naming in the asset-handler pallet (#558)
  • Bumped Runtime and Client versions (#557)
  • Dependencies source location changed from branches to tags (#566)
  • Behaviour on block delay (#571)
  • Bumped polkadex-primitives as a dependency version in the consuming crates (#576)
  • spec_name changed from default (#585)
  • OrderDetails struct properties scope to public ([#700])
  • Bumped Substrate version to v0.9.37 ([#701])
  • Bumped subxt version to polkadot-v0.9.37 ([#716])
  • Snapshot interval defaults to 20 withdrawals or 5 blocks ([#722])
  • TheaHandler pallet name in thea-connector ([#727])
  • Ingress message storage to be map based ([#734])
  • Reload last snapshot state in case of Error ([#740])

Removed

  • Old ingress messages ([#723])
  • BLS Host functions ([#731])

Fixed

  • Dockerfile to build the node by bumping toolchain version (#409)
  • pallet-ocex-lmp pallet:
    • To respect polkadex-primitives state (#437)
    • Tests (#498, #577, [#694])
    • Minor issues (#514)
    • submit_snapshot extrinsic to not add onchain event if snapshot has empty withdrawals (#500)
    • register_trading_pair extrinsic with adding assertion of minimum volume trading pair (#524)
    • update_trading_pair extrinsic with adding assertion of minimum volume trading pair (#547)
    • set_exchange_state extrinsic (#550)
    • Withdrawal double spend bug (#548)
  • mint_asset extrinsic and amount precision in asset-handler pallet (#473)
  • Chain spec (#504)
  • Code style (#519, [#760])
  • Order of assertion in asset-handler pallet mint_asset extrinsic (#549)
  • Unsafe arithmetic in pallet-ocex-lmp and asset-handler pallets (#551)
  • Post-release bugs (#554, #560)
  • Node build in docker (#568)
  • Runtime dependency (#574)
  • Make precision calculation programmable (#580)
  • Benchmarks (#579)
  • Github workflows clean up (#598)
  • Tarpaulin used in the CI (#627, #630)
  • Removed unused dependencies (#653, [#699])
  • Docker build by pinning toolchain version (#667)
  • Order comparators ([#691])
  • Orderbook client ([#713], [#710])
  • pallet-rewards-runtime-api name in runtime std feature ([#714])
  • Bugs found during Thea testing ([#738], [#739])

Security

  • Prevented double spend attack scenario in collect_fees extrinsic of OCEX pallet (#552)

[#...

Read more

Release v4.0.0

05 Oct 03:23
Compare
Choose a tag to compare
Orderbook Release (#533)

* fix:  add thea client and pallet (#412)

* Integrate ido to mainnet runtime  (#416)

* add: IDO Pallet

* fix: update dependency file

* fix: integrate ido with runtime

* fix: include assets in testnet genesis config

* refactor: Polkadex_Ido to polkadex-ido

* refactor: remove Polkadex_Ido

* remove: assets config

* fix: dependency issues

* fix: remove orml dependencies and code

* fix: reorder pallets as per index

* Create pull_request_template.md (#425)

* fix: update ido with polkadex_primitives changes (#431)

* Updated chain_spec (#423)

* Integrate OCEX pallet to runtime  (#434)

* Test token provider pallet for testnet  (#424)

* add: skeleton pallet

* fix: add AssetManager and skeleton extrinsic

* add: demo minting function

* add: mock runtime environment with dependencies

* add: small mvp with unit tests

* fix: integrate token provider with runtime

* fix: validate_unsigned in token provider

* fix: validation logic for minting tokens

* fix: minting native token

* refactor: update manifest

* fix: asset_id for ether

* fix: build errors due to deps

* fix: hardcoded asset_id

* fix: provide accout to resolve priority issue

* fix: update pallet with upstream changes (#437)

* Runtime API for polkadex-ido  (#439)

* fix: update unit tests with primitives

* fix: add api for polkadex-ido

* fix: build errors

* fix: include ido rpc in node

* fix: changes required for testnet

* fix: remove random eviction and unit tests for fcfs

* fix: update faucet token asset

* fix: remove redundant lines and debug messages

* Integrate Chainbridge and AssetHandler Pallet (#411)

* Added Chainbridge Pallet

* Updated chainbridge Pallet

* Added new AssetHandler Pallet

* Updated runtime

* Added test files

* Fixed tests

* Updated Pallet description

* Save files

* Added weight

* Added copyrights

* Fixed Clippy Warnings

* Fixed formatting issue

* Included chainbridge tests

* Added copyrights

* Fixed tests

* Refactored asset handler signature to be consistent and refactored tests

* Removed unused imports

* Extended docblocks

* Code style fixes

* Code Formatted

Co-authored-by: Serhii Temchenko <serhii@polkadex.trade>

* Fixed Mint Asset Extrinsic and amount precision  (#473)

* Changed datatypes

* fixed chainbridge issues

* weights for OCEX extrinsics and proper weight annotation (#486)

* Testing OCEX pallet  (#479)

* Updated OCEX Pallet

* Merged latest gj-ocex

* fix: allowing test tokens for a few assetids

* fix: update asset_id

* fix: update extrinsic

* fix: asset

* fix: token amount

* fix: updating asset amount

* fix: remove unwrap causing panic

* Refactor register_enclave

* Saved new chnages

* fix: updated mock environment

* fix: moved tests to mock

* add: pallet_timestamp dev deps

* fix: add tests module

* fix: add new test ext function

* fix: add dev dependency for testing

* add: single test for registering main account

* fix: add unit tests for extrinsics

* fix: add deposit tests

* fix: add tests for open_trading_pair extrinsic

* fix: add tests for close_trading_pair extrinsic

* fix: testing collect_fees extrinsic

* fix: add dev deps for MRR tests

* fix: add function to calculate MMR for accounts

* fix: add tests for submitting snapshot

* fix: submit_snapshot extrinsic

* fix: add tests for register_enclave extrinsic

* fix: add tests for shutdown

* fix: add event assertion in tests

* fix: ingress messages assertion in testcases

* fix: add bad origin test for shutdown

* fix: add bad origin test for withdrawal

* fix: add bad origin test for register_enclave

* fix: add bad origin test for submit_snapshot

* fix: add bad origin test for collect_fees

* fix: bad origin test for close trading pairs

* fix: bad origin test for open_trading_pair

* fix: bad origin test for deposit

* fix: bad origin test for register_trading_pair

* fix: bad origin test for add_proxy_account

* fix: bad origin test for register_main_account

* fix: add proxy limit test

* fix: add success withdrawal test

* fix: adding withdrawal test with a valid snapshot instance

* fix: updating lock file

* Update register_main_account to add proxy account correctly (#484)

* Integrated council governence

* Changed comment

* Added concil

* fix: balance assertions

* fix: add trailing empty line

* fix: remove unused account_id

* fix: remove example pallet in mock.rs

* Fix Compilation

* Change back the branch

* Added orderbook council (#487)

* Added orderbook council

* Added new paramenters

* Upgrade to polkadot-v0.9.28 (#488)

* Upgrade to polkadot-v0.9.28

* fix: ocex pallet compilation

* fix: typo

Co-authored-by: Faisal Ahmed <faisalahmedfarooq46@gmail.com>

* fix: cleanup tests

* fix: remove EnsureOneOf and use EitherOfDiverse

* fix: updated withdrawal extrinsic with BoundedBTreeMap

* fix: updated snapshot tests

* fix: updated succesfull tests to include BoundedBTreeMap

* fix: updated tests for collect_fees

* fix: added sp_io as a dev dependency for testing

* fix: assert_ok for enclave empty report

* fix: annotate insert_enclave with #[doc(hidden)]

* fix: remove comment in cargo.toml

* refactor: add trailing empty line

* fix: add Cargo.lock

* Adds Chainbridge and AssetHandler

* Adds Chainbridge and AssetHandler

* Code style fixes

* fix: remove accidental comment

* fix: update register_enclave test and extrinsic

* Fix Snapshot Nonce in ocex

* Fix Snapshot Nonce in ocex

* Fix Snapshot Nonce in ocex

* fix: add rpcs and update tests

Co-authored-by: zktony <zktony@protonmail.com>
Co-authored-by: zktony <86763036+zktony@users.noreply.github.com>
Co-authored-by: Gautham <Gauthamastro@gmail.com>
Co-authored-by: Serhii Temchenko <serhii@polkadex.trade>

* Added remove proxy extrinsic (#489)

* Integrated remove proxy

* Added proxy extrinsic

* Added remove proxy extrinsic

* Impl delay for withdrawals above a certain limit (#490)

* Integrated remove proxy

* Added proxy extrinsic

* Added remove proxy extrinsic

* Updated withdrawal

* Resolved Gautham comment

* Resolved compilation issue

* added test cases

* Fixed order

* Removed expect

* Added test cases

* Updated weights

* Refactor Withdrawals  (#497)

* fix: add onchain_events

* fix: update tests

* fix: assertions for onchainevent for withdrawal claimed

* fix: add remove_proxy extrinsic which was accidentally removed

* fix: add doc for onchaineventsfilled

* fix: add test for onchain_events overflow

* fix: add on_initialize test

* fix: update withdrawal struct with fees for tests

* fix: remove rpc implementation as no longer required

* fix: remove data insertions outside ensure macro

* fix: update OnchainEventsFilled to OnchainEventsBoundedVecOverflow

* fix: update comments and remove panic

* fix: add weights for submit_snapshot and withdraw

* fix: updating weights for submit_snapshot

* fix: add benchmarks manually

* Update lib.rs

* fix: update dep for polkadex-primitives

* fix: comments for storage item

Co-authored-by: Gautham <Gauthamastro@gmail.com>

* Fix CI in develop

* Update build-ci.yml

* fix: tests for ocex (#498)

* Update build-ci.yml (#501)

* Fix chainspec (#504)

* . (#505)

* [428] Improve CI/CD (#506)

* Code style fixes

* Added fmt check in CI

* Added fmt check action task

* Added wasm toolchain to ci

* Code style fixes

* Handled unhandled result

* Usage of deprecated method replaced with correct one

* Removed unused imports

* Added compiler flag to fail CI build on warnings

* Code style fixes (clippy)

* Added CI clippy check

* Updated branch name in CI

* Activated and updated CI code coverage

* Installed clippy as a component in CI

* Code style fixes

* fix minor issues with ocex pallet (#514)

* enabled 24 hr removal of registered enclaves

* enabled 24 hr removal of registered enclaves

* change withdrawal ext to claim_withdraw

* add arugment accounted to claim-withdraw extrinsic

* unwrap replaced with safe unwrap_or_else (#517)

Co-authored-by: Ivan Temchenko <35359595i@gmail.com>

* fee collect by ob-council (#515)

* fee collect with orderbook council (governance)

* fix typo

* Replace Balance type with Decimal (#516)

* Add rust-decimal instead of Balance

* Fix cargo test

* Fixed tests

* Update deposit extrinsic  (#518)

* fix: add deposit overflow check

* fix: update deposit to 10^27 from 10^21

* fix: add unit tests for deposit overflow

* fix: update unit test for deposit overflow

* Cargo fmt and remove faucet and ido

* Fixing cargo tests.rs

* fix: warnings and remove unused code (#520)

* fix: warnings and remove unused code

* fix: remove unused variables

* fix: remove create_withdrawal_500

* Tests passing

* Some stuff

* Delete unused RPC code

* fix: failing unit tests of onchain events overflow (#521)

Co-authored-by: zktony <zktony@protonmail.com>
Co-authored-by: Faisal Ahmed <42486737+felixfaisal@users.noreply.github.com>

* Code style fix (#519)

* Code style fix

* Clippy fix

* Fix Field change

* remove TradingPairStatus (#511)

* remove tradingPairStatus

* fix cargo fmt

* fix cargo clippy

* fix cargo fmt

* fix fmt and clippy warnings

* updated test cases

* fix fmt - again

* Set Fees to default in `submit_snapshot`  (#513)

* fix: set fees to default in submit_snapshot

* fix: register_enclave test has been completed

* fix: tests and ci formatting

* fix: apply formatting with nightly flag

* Implemented Token whitelisting for CB Pallet  (#523)

* Added token whitelisting in AssetHandler Pallet

* Fixed tests

* Fixed formatting issue

* Updated collected fee

* Resolved comments

* Fixed formating issue

* Fixed tarpaulin CI run command

* Remove unused var

Co-authored-by: Serhii Temchenko <serhii@polkadex.trade>

* Add extrinsic to update trading pair config  (#522)

* Add rust-decimal instead of Balance

* Fix cargo test

* Fixed tests

* Update deposit extrinsic  (#518)

* fix: add deposit overflow check

* fix: update deposit to 10^27 from 10^21

* fix: add unit tests for deposit overflow

* fix: update unit test for deposit overflow

* Cargo fmt and remove faucet and ido

* Fixing cargo tests.rs

* fix: warnings and remove unused code (#520)

* fix: warnings and remove unused code

* fix: remove unused variables

* fix: remove create_withdrawal_500

* fix: add extrinsic to update market config

* fix: unit tests for update trading pair ext

* fix: ensure params do not overflow

* fix: formating for CI

* fix: apply fmt with nightly flag

* refactor: StorageOverflow to AmountOverflow

* fix: update tests to include overflows

* fix: add checks for zero and subsequent tests

* fix: resolve ci checks

Co-authored-by: Gautham <gauthamastro@gmail.com>
Co-authored-by: zktony <zktony@protonmail.com>

* Whitelisting of enclaves  (#526)

* fix: add extrinsic to whitelist enclave account_ids

* fix: add unit tests for the new extrinsics

* fix: review comments

* fix: updated inline comments

* Get Balances RPC call  (#510)

* fix: add rpc for account balances in asset-handler pallet

* fix: apply fmt with nightly flag

* fix: add unit test for account_balances helper function

* fix: apply review comment fixes

* fix: codecov config

* Fix balances RPC  (#528)

* Update lib.rs

* fix: RPC account_balances

* fix: add if condition for withdrawals onchain events (#500)

* fix: add if condition for withdrawals onchain events

* fix: update lock file

* fix: unit tests failing

* Trading Pair Min volume (#524)

* trading pair min volume logic fixed

* fixed fmt

* worked on commments

* added comments

* added edge case test case, fixed naming conventions

* added the comments backed

* fixed typo

* fixed typo

* Min volume condition for Update trading pair (#547)

* checked min volume condition in update trading pair pallet and added Test case for it

* fixed formatting

* relayer checked done before proceeding for further calculations (#549)

* Validation for Asset precision  (#530)

* fix: adding validation logic for asset precision

* fix: Updating tests and validation logic for precision

* fix: Fixes based on PR comments

* fix: accidental merge changes

* fix: update cargo.lock file

* Impl token allowlisting for OCEX Pallet (#527)

* Added

* Fixed clippy warning

* Fixed formating issue

* Changed from whitelist to allowlist

* Solved formmatting issues

* Format

Co-authored-by: Gautham <gauthamastro@gmail.com>

* fix: free pending withdrawals after succesful transfer (#553)

* fix: collect fees extrinsics  (#552)

* fix: collect-fees

* fix: update collect fees extrinsic

* fix: add while loop

* refactor: apply rustfmt fixes

* fix: return error if transfer fails

* fix: add test for overflow in collect-fees

* Fix arithmetic (#551)

* fixed unsafe aritmetic in register trading pair

* fixed unsafe aritmetic in update trading pair

* safe arithmetics used in ocex pallet

* fixed arithmetics in asst handler pallet

* fixed ci

* instead of storing result in variable, return it directly

* Made claim_withdraw feeless (#556)

* fix: extrinsic for exchange state (#550)

* fix: extrinsic for exchange state

* fix: update unit tests

* fix: add unit tests for exchange state

* fix: failing unit test

* fix: deposit event upon updating exchange state

* fix: merge Develop

* changed error msg (#558)

* fix: withdrawal double spend bug (#548)

* fix: withdrawal double spend bug

* refactor: rustfmt fixes

* refactor: do not remove key from btree_map

* fix: apply CI fixes

* fix: apply clippy warnings fix

* fix: apply review comments fix

* Update version (#557)

* Nuel/fix release issues (#554)

* - fix for deposit validation
- add operational status check for trading pairs

* add checks so asset_id created from same

* fix clippy and added nightly to script

* fix tests

* fix tests

* Add unwrap

Co-authored-by: Gautham <gauthamastro@gmail.com>

* Fix Comments (#560)

* Fix Comments

Co-authored-by: Faisal Ahmed <42486737+felixfaisal@users.noreply.github.com>
Co-authored-by: zktony <86763036+zktony@users.noreply.github.com>
Co-authored-by: Serhii Temchenko <serhii@polkadex.trade>
Co-authored-by: Ivan Temchenko <35359595i@gmail.com>
Co-authored-by: zktony <zktony@protonmail.com>
Co-authored-by: serhii-temchenko <107397548+serhii-temchenko@users.noreply.github.com>
Co-authored-by: Emmanuel Thomas <50878033+nuel77@users.noreply.github.com>
Co-authored-by: Nakul Amate <nakul.amate@gmail.com>

Release v1.0.8

18 Apr 05:23
Compare
Choose a tag to compare
fix cargo test

Release v1.0.7

16 Nov 11:12
Compare
Choose a tag to compare
Add bootnodes

b1.0.7

11 Nov 09:29
Compare
Choose a tag to compare
b1.0.7 Pre-release
Pre-release

Beta for an upcoming prerelease

Release v1.0.6

05 Nov 07:42
Compare
Choose a tag to compare
Update node id for EU central node