5.0.0 (2021-05-06)
Bug Fixes
- add support for new investor uniquenes claim v2 (3aa040a)
- dividends: require proper permissions for creating dividends (da07873)
- test (b89d8d3)
- checkpoint: fix logic to get a single balance at a given checkpoint (2da8850)
- dividends: require ST permissions to create CAs (510051f)
- instructions: properly ignore pruned venue instructions (dc49444)
- invest in sto: use
maxPrice
properly (4dbc60d) - middleware: use proper type for dates coming from the middleware (ce6917a)
- sto: stop ordering tiers when fetching STOS (3e5664f)
- transfer restrictions: remove exemptions correctly (4d67858)
- types: upgrade Polymesh types to 2.7.0 (3541a46)
- types: upgrade types to Polymesh 3.0.0 (2bd3967)
chore
- remove isInfinite as property from CheckpointSchedule class (881dbfa)
Code Refactoring
- rename freeTokenBalance to free in error data in investInSTO (b1edddc)
Features
- asset: add new token type StableCoin (bf274d0)
- balances: add total to AccountBalance and free to PortfolioBalance (abab2bb)
- checkpoint: add
createSchedule
to theCheckpoints
namespace (e173297) - checkpoint: return new checkpoint on creation (46b2630)
- checkpoint schedules: expose complexity calculations (1b209ff)
- checkpoints: add
checkpoints.create
to the Security Token Entity (28a2b82) - checkpoints: add
Checkpoints.get
and create Checkpoint entity (e5cf565) - claims: add support to addInvestorUniquenessClaimsV2 (3b20bc7)
- client: add the
disconnect
method (7d0f722) - corporate actions: add
getDefaults
(82a8a53) - corporate actions: add
setDefaults
to the namespace (106340d) - corporate actions: check target and withholding lengths (cc4f40b)
- corporate actions: create the
CorporateAction
class (4e3728a) - dividend distribution: add
claim
toDividendDistribution
(c4312f6) - get st's corporate actions agent (63f1e65)
- dividends: add
getParticipants
(ac3bc0e) - dividends: add dividends getter (c166500)
- dividends: add getters for details and checkpoint (6318b39)
- dividends: create dividend namespaces and entities (a6f7e81)
- dividends: implement dividend creation (6b5eaf2)
- permissions: add more modules to the exempted list (e6b2398)
- add CorporateActions TxGroup (0f69366)
- addInstructions method (e911adc)
- allBalances improvements (9b28d81)
- allow any Identity to get pending instructions (c804a70)
- check ss58 format (efaf4f2)
- checkpointSchedule exists (d5b6652)
- controllerTransfer method (d5908fa)
- create the Schedules namespace (c678a6d)
- freeze/unfreeze secondary keys (8bed400)
- get checkpoints with pagination (92ade66)
- getSchedules methods (37cbc06)
- getWithheldTax method (9aa4e55)
- implement getCheckpoints method (33bd8e9)
- investInSto procedure (f886bc2)
- link documents to corporate action (5fb046a)
- modify venue details and type (cdc0623)
- modifyCorporateActionsAgent method (e1a2fc9)
- modifyRecordDate method (b36ed1f)
- new throw message when there are not restrictions to remove (be06797)
- push benefit method (85a9abe)
- reclaimCapitalDistribution procedure (32d240b)
- remove pagination in checkpoints get method (c0c4c1b)
- removeAgent method (4d04893)
- removeCheckpointSchedule (ad54e7d)
- settlements: implement
canTransfer
(b112802) - sto: add
name
to theSto
entity (d800303) - sto: add balance fetching methods to Checkpoint entity (f281c57)
- sto: improve offering details (666a39f)
- sto: make name a part of details (d8c627c)
- transaction queue: support transforming queue results (c8c84ba)
- txgroups: add StoManagement group (2948d39)
- schedule exists (97c07ec)
- set ss58_format when instantiating the sdk (95d2ca2)
- throw if compliance requirements conditions limit is reached (324e991)
- when launching STO tokens must be pre-minted (50b2e5d)
- types: upgrade polkadot types to Alcyone 2.6 (6b93245)
- types: upgrade types according to Polymesh 3.0.1 (46beef3)
Tests
- checkpoints: add missing namespace tests (8c708c8)
BREAKING CHANGES
freeBalance
is renamed tofree
in error data when configuring a distribution.
freeTokenBalance
is renamed tofree
in error data for controller transfercheckpoints.createSchedule
is nowcheckpoints.schedules.create
.
checkpoints.removeSchedule
is nowcheckpoints.schedules.remove
.checkpoints.getSchedules
is
nowcheckpoints.schedudles.get
-
- isInfinite is no longer accesible as instance property
- checkpoint:
checkpoints.create
now returns a Checkpoint entity instead of a SecurityToken - sto: Sto status is now divided into
timing
,sale
andbalance
- checkpoints: support Polymesh 2.5