github PolymeshAssociation/Polymesh v5.2.0
Polymesh v5.2.0

latest releases: v6.3.4, v6.3.3, v6.3.2...
19 months ago

modified logic

  • Minor changes to running_count insert and delete logic (#1333)
  • Move the decode logic from the RPC wrapper into the chain runtime. This is an internal change between the host binary and the chain runtime. (#1343)
  • Modified unbond function to not allow a validator to unbond leaving less than 50k POLYX bonded (#1348)
  • Added check for ticker starting first byte (#1344)
  • Adds a helper function for setting the Timestamp in unit tests. (#1359)
  • Add ensure check for revoke_claim to make sure claim exist (#1361)
  • Created a check in ticker registration to make sure it is alphanumeric (#1296)
  • Store block hashes for the last 4,096 blocks rather than the current 250 blocks - as per paritytech/polkadot#6037 (#1375)
  • Allow operational extrinsics which are submitted by the GC or a CDD provider to have non-zero tips and corresponding priorities. (#1377)
  • To avoid a state rollback (i.e allow setting instruction status to the failed state) the return of execute_instruction_retryable is now matched, and returns an event in case of failure. (#1383)
  • Added compliance check for validators list and test case to check error (#1376)
  • Don't allow the same ticker to be moved multiple times within the same portfolio move extrinsic (#1374)
  • Emit event BridgeTxFailed to report errors (missing CDD, limit reached) when trying to handle a bridge transaction, instead of returning the error. This is needed to support new Substrate release that wrap all calls in transactions. (#1373)
  • Updates extrinsic benchmarks for 5.2. (#1392)
  • Settlement receipts are not allowed for tickers of on-chain assets. (#1405)
  • Update example settlement contract to use manual settlement execution. (#1391)

data migration required

  • Called Identity add_account_key_ref_count function on current validators (#1333)

new features

  • Allow payment_queryInfo RPC endpoint to work even when the RPC node is a different version from the chain runtime. (#1343)
  • Add support for Smart Contracts to call into the runtime, read from storage, Twox hash, get chain spec/transaction version, get key's identity. (#1337)
  • Add CallRuntimeWhitelist storage to restrict the pallets/extrinsics that contracts are allowed to call. (#1337)
  • Add a new event BridgeTxFailed to the bridge pallet. (#1373)
  • Add example Smart Contract for vesting POLYX. (#1388)
  • Add example Smart Contract for wrapped POLYX. (#1392)
  • Add Polymesh Runtime 5.x contract code for upgradable contracts. (#1393)

modified api

  • Add payment_queryFeeDetails RPC endpoint. (#1343)
  • Added CallRuntime chain extension to allow contracts to call extrinsics. Only extrinsics in the CallRuntimeWhitelist are allowed. (#1337)
  • Added new function chill_from_governance (#1317)
  • Added execute_manual_instruction extrinsic (#1352)
  • Added ReadStorage chain extension for reading from any hashed storage key (key and value limited to 8kb). (#1337)
  • Added GetSpecVersion chain extension to get current spec version. (#1337)
  • Added GetTransactionVersion chain extension to get the current transaction version. (#1337)
  • Added GetKeyDid chain extension to get the identity for a key (AccountId). (#1337)
  • Added KeyHasher chain extension with hash Twox (64, 128, 256) support. (#1337)
  • Converted old chain extensions to OldCallRuntime. Those chain extensions are deprecated and shouldn't be used. (#1337)
  • Added storage CallRuntimeWhitelist to restrict the pallets/extrinsics that contracts are allowed to call. (#1337)
  • Added extrinsic PolymeshContracts.update_call_runtime_whitelist() to add/remove extrinsics from the whitelist. (#1337)
  • New extrinsic identity::cdd_register_did_with_cdd to allow CDD providers to create an identity and add a CDD claim with a blank CddId, in a single extrinsic call. (#1380)
  • Adds an event: FailedToExecuteInstruction; (#1383)
  • The execute_scheduled_instruction will no longer return an error; (#1383)
  • Portfolio::NameToNumber returns an Option (#1381)
  • Disable Settlement claim_receipt and unclaim_receipt. (#1405)

Don't miss a new Polymesh release

NewReleases is sending notifications on new releases.