Skip to content

Commit 0364a35

Browse files
authored
Merge pull request #475 from Concordium/bump-major/web-sdk
New major version bump
2 parents 2f0cd1d + 8460324 commit 0364a35

File tree

2 files changed

+5
-141
lines changed

2 files changed

+5
-141
lines changed

packages/sdk/CHANGELOG.md

Lines changed: 4 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
## 10.0.0
6+
7+
Adds support for integrating with Concordium nodes running version 9.
8+
59
### Breaking changes
610

711
- Add `TokenUpdateSummary` to the possible transaction outcomes declared by `AccountTransactionSummary`
@@ -47,146 +51,6 @@
4751
with `buildAccountSigner`
4852
- A new optional field `createPlt` to `AuthorizationsV1` which exposes the access structure for PLT creation.
4953

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

19256
### Fixed

packages/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@concordium/web-sdk",
3-
"version": "10.0.0-alpha.15",
3+
"version": "10.0.0",
44
"license": "Apache-2.0",
55
"engines": {
66
"node": ">=16"

0 commit comments

Comments
 (0)