|
2 | 2 |
|
3 | 3 | ## Unreleased
|
4 | 4 |
|
| 5 | +## 10.0.1 |
| 6 | + |
| 7 | +### Fixed |
| 8 | + |
| 9 | +- Added missing support for the new transaction summary type `TokenCreation`. This has been added to the |
| 10 | + `BlockItemSummary` union type. |
| 11 | + |
5 | 12 | ## 10.0.0
|
6 | 13 |
|
7 |
| -Adds support for integrating with Concordium nodes running version 9. |
| 14 | +- Adds support for integrating with Concordium nodes running version 9. |
8 | 15 |
|
9 | 16 | ### Breaking changes
|
10 | 17 |
|
@@ -51,6 +58,146 @@ Adds support for integrating with Concordium nodes running version 9.
|
51 | 58 | with `buildAccountSigner`
|
52 | 59 | - A new optional field `createPlt` to `AuthorizationsV1` which exposes the access structure for PLT creation.
|
53 | 60 |
|
| 61 | +## 10.0.0-alpha.? (Unreleased) |
| 62 | + |
| 63 | +### Fixed |
| 64 | + |
| 65 | +- Fix conversion in `TokenAmount.fromDecimals` function when used with large `tokenAmount` values with small `decimal` values. |
| 66 | + |
| 67 | +## 10.0.0-alpha.15 |
| 68 | + |
| 69 | +### Fixed |
| 70 | + |
| 71 | +- Fix conversion in `TokenAmount.fromDecimals` function when used with large `decimal` values. |
| 72 | + |
| 73 | +### Changed |
| 74 | + |
| 75 | +- Remove authorization validation for PLT `Token` client. |
| 76 | +- All `Token` operations' validations are done in a separate respective functions. |
| 77 | +- Removed `UnauthorizedGovernanceOperationError` from `Token` PLT client. |
| 78 | + |
| 79 | +### Added |
| 80 | + |
| 81 | +- Add helper function `validateMint`, `validateBurn`, `validateAllowListUpdate`, `validateDenyListUpdate` |
| 82 | + for validating PLT token client operations. |
| 83 | +- Add `updateToken` method that returns the latest finilized block state of a token. |
| 84 | + |
| 85 | +## 10.0.0-alpha.14 |
| 86 | + |
| 87 | +### Changed |
| 88 | + |
| 89 | +- Enable `denyList`/`allowList` validation on plt token transfers. |
| 90 | +- Client side validation in the PLT `Token` client is now disabled by default and has to be enabled explicitly if wanted |
| 91 | + |
| 92 | +### Added |
| 93 | + |
| 94 | +- Add optional `initialSupply` field to `TokenInitializationParameters` type. |
| 95 | +- Add `protocolLevelTokens` field to `NextUpdateSequenceNumbers` type. |
| 96 | +- Add helper function `createPLTPayload` for creating `CreatePLTPayload`s for the corresponding chain update. |
| 97 | + |
| 98 | +## 10.0.0-alpha.13 |
| 99 | + |
| 100 | +### Changed |
| 101 | + |
| 102 | +- Disable `denyList`/`allowList` validation on plt token transfers. |
| 103 | + |
| 104 | +## 10.0.0-alpha.12 |
| 105 | + |
| 106 | +### Breaking changes |
| 107 | + |
| 108 | +- Changed the representation of `TokenEvent` to a more flattened version in line with the representation in concordium-base. |
| 109 | +- Replaced `TokenUpdateEvent` with the flattened `TokenEvent` mentioned above. |
| 110 | +- Revised the constraints associated with `TokenId`. |
| 111 | + |
| 112 | +### Added |
| 113 | + |
| 114 | +- `pause` and `unpause` functions added to the `Token` module, which can be used to pause/unpause execution of token operations respectively. |
| 115 | +- `moduleState` added to `Token` instances, which is the parsed token module state of a PLT instance. |
| 116 | + |
| 117 | +### Changed |
| 118 | + |
| 119 | +- Energy cost of PLT mint/burn changed from 100 to 50 |
| 120 | +- Changed the functions exposed for submitting token updates on `Token` to take optional `TokenUpdateMetadata` instead of |
| 121 | + getting the corresponding data from chain. |
| 122 | + |
| 123 | +## 10.0.0-alpha.11 |
| 124 | + |
| 125 | +### Fixed |
| 126 | + |
| 127 | +- An issue where the token module state of a PLT could not be correctly decoded from it's CBOR representation. |
| 128 | + |
| 129 | +## 10.0.0-alpha.10 |
| 130 | + |
| 131 | +### Fixed |
| 132 | + |
| 133 | +- Fixed a bug where PLT transfer validation would fail when the reciever had no balance if the token had a deny list. |
| 134 | + |
| 135 | +## 10.0.0-alpha.9 |
| 136 | + |
| 137 | +### Breaking changes |
| 138 | + |
| 139 | +- Consolidate `TokenHolderPayload` and `TokenGovernancePayload` into `TokenUpdatePayload`, and correspondingly on the |
| 140 | + enums `AccountTransactionType` and `TransactionKindString`. |
| 141 | +- Consolidate `TokenHolderUpdateHandler` and `TokenGovernanceUpdateHandler` into `TokenUpdateHandler`. |
| 142 | +- Consolidate `TokenHolderSummary` and `TokenGovernanceSummary` into `TokenUpdateSummary`, and correspondingly on the `TransactionEvent` enum. |
| 143 | +- Consolidate `TokenHolderTransactionFailedRejectReason` and `TokenGovernanceTransactionFailedRejectReason` |
| 144 | + into `TokenUpdateTransactionFailedRejectReason`, and correspondingly on the `RejectReasonTag` enum. |
| 145 | +- Functionality exposed on `V1.Token` and `V1.Governance` is now available on `Token`, which is a client for interacting with PLTs. |
| 146 | + Any functionality previously exposed on the `V1` namespace, has been moved to the root of `@concordium/web-sdk/plt`. |
| 147 | +- Removed `UnauthorizedTokenGovernance` type and the corresponding `RejectReasonTag.UnauthorizedTokenGovernance`. This will now happen |
| 148 | + as a `EncodedTokenModuleEvent` instead. |
| 149 | +- Changed the representation of accounts on any PLT related type from `AccountAddress` to `TokenHolder`. |
| 150 | + |
| 151 | +### Added |
| 152 | + |
| 153 | +- `TokenHolder`: A representation of the different token holder entities. Currently, only accounts are supported. |
| 154 | + |
| 155 | +## 10.0.0-alpha.8 |
| 156 | + |
| 157 | +### Breaking changes |
| 158 | + |
| 159 | +- Add `TokenHolderSummary` and `TokenGovernanceSummary` to the possible transaction outcomes declared by |
| 160 | +- `AccountTransactionSummary`, and correspondingly `TokenHolderEvent` and `TokenGovernanceEvent` to `TransactionEvent`. |
| 161 | +- Added new variants `TokenHolder` and `TokenGovernance` to `TransactionEventTag`, `AccountTransactionType` and correspondingly `TransactionKindString`. |
| 162 | +- Added new variant `CreatePLT` to `UpdateType`. |
| 163 | +- Updated `AccountInfo` to hold information about the PLTs held by an account. |
| 164 | +- Removed `toProto` and `fromProto` from the exposed API for all custom types in the SDK. This should have no impact, as |
| 165 | + the parameter/return values are internal-only. |
| 166 | +- Added `TokenHolderPayload` and `TokenGovernancePayload` to `AccountTransactionPayload` union type. |
| 167 | +- Added reject reasons related to PLT transactions to `RejectReason` union type. |
| 168 | +- `CcdAmount.fromDecimal` no longer supports creation from a string with comma used as the decimal separator, e.g. |
| 169 | + "10,123". |
| 170 | + |
| 171 | +### Added |
| 172 | + |
| 173 | +- A new package export scoped to hold types and functionality for interacting with PLTs, available at |
| 174 | + `@concordium/web-sdk/plt`. |
| 175 | +- New types representing entities within the domain of protocol level tokens (PLTs) |
| 176 | + - `Cbor`: Represents CBOR encoded details for PLT module state, events, and operations |
| 177 | + - `CborMemo`: Represents CBOR encoded memos for PLT transactions |
| 178 | + - `TokenId`: A unique text identifier of a PLT |
| 179 | + - `TokenAmount`: A representation of a PLT amount |
| 180 | + - `TokenModuleReference`: The module reference of a PLT instance |
| 181 | + - `TokenMetadataUrl`: An object containing the url for token metadata |
| 182 | + - `TokenHolder`: A representation of the different token holder entities. Currently, only accounts are supported. |
| 183 | + - `TokenAccountState`, `TokenState`, `TokenInfo`, and `TokenAccountInfo`, all representing PLT related data returned by the |
| 184 | + GRPC API of a Concordium node. |
| 185 | +- `Token`, which is a client for interacting with PLTs |
| 186 | +- `parseModuleEvent`, which attempts to parse an `EncodedTokenModuleEvent` into a `TokenModuleEvent`. |
| 187 | +- CBOR conversion functionality to `AccountAddress`. |
| 188 | +- An extension for `cbor2`, which registers CBOR encoders for all relevant Concordium types. This is accessible at the |
| 189 | + `@concordium/web-sdk/extensions/cbor2` entrypoint. |
| 190 | +- `cborEncode` and `cborDecode` functions for deterministic encoding/decoding of objects composed of Concordium domain |
| 191 | + types. |
| 192 | +- `registerCborDecoders` and `registerCborEncoders` for registering Concordium domain type encoders/decoders globally |
| 193 | + for `cbor2` |
| 194 | + - **NOTE**: By registering decoders globally without using the returned cleanup function, the registration overrides |
| 195 | + any previously registered decoder for the corresponding CBOR tag. |
| 196 | +- `TokenUpdateHandler`, which is also accessible by passing the corresponding `TransactionType` to `getAccountTransactionHandler`. |
| 197 | +- Function `parseSimpleWallet` which parses a `SimpleWalletFormat` (also a subset of `GenesisFormat`), which can be used |
| 198 | + with `buildAccountSigner` |
| 199 | +- A new optional field `createPlt` to `AuthorizationsV1` which exposes the access structure for PLT creation. |
| 200 | + |
54 | 201 | ## 9.2.0
|
55 | 202 |
|
56 | 203 | ### Fixed
|
|
0 commit comments