Skip to content

Commit

Permalink
Merge pull request #175 from Concordium/version-bump
Browse files Browse the repository at this point in the history
bump minor version in common,web,nodejs packages
  • Loading branch information
soerenbf authored May 3, 2023
2 parents de04b77 + b001d02 commit b824687
Show file tree
Hide file tree
Showing 34 changed files with 61 additions and 72 deletions.
2 changes: 1 addition & 1 deletion examples/client/banPeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--peer, -p The ip of the peer to ban.
Expand Down
2 changes: 1 addition & 1 deletion examples/client/dumpStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--filepath, -f Specifies which file to dump the packages into
Expand Down
2 changes: 1 addition & 1 deletion examples/client/dumpStop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAccountList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAccountNonFinalizedTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--account, -a The account to get transactions from
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAncestors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--max-ancestors, -m Maximum amount of ancestors to get
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getAnonymityRevokers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBakerList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
3 changes: 1 addition & 2 deletions examples/client/getBannedPeers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
3 changes: 1 addition & 2 deletions examples/client/getBlockChainParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockFinalizationSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockPendingUpdates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockSpecialEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlockTransactionEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
6 changes: 3 additions & 3 deletions examples/client/getBlocksAtHeightRelative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Required
--height, Height starting from the genesis block at the genesis index.
--restrict, -r Whether to return results only from the specified genesis index (true),
or allow results from more recent genesis indices as well (false).
--genesis-index, -g The index of a (re)genesis block. The initial genesis block has index 0
and each subsequent regenesis has an incrementally higher index.
--genesis-index, -g The index of a (re)genesis block. The initial genesis block has index 0
and each subsequent regenesis has an incrementally higher index.
Options
--help, Displays this message.
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getBranches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
2 changes: 1 addition & 1 deletion examples/client/getConsensusStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import meow from 'meow';
const cli = meow(
`
Usage
$ yarn ts-node <path-to-this-file> [options]
$ yarn run-example <path-to-this-file> [options]
Options
--help, Displays this message
Expand Down
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"type": "module",
"dependencies": {
"@concordium/common-sdk": "6.4.1",
"@concordium/node-sdk": "6.3.0",
"@concordium/node-sdk": "workspace:^",
"@grpc/grpc-js": "^1.3.4",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
Expand Down
6 changes: 3 additions & 3 deletions examples/readme.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## Examples for the Concordium NodeJS-SDK

This is a collection of scripts/examples that utilizes the SDK. There are
two directories with examples `client`, containing examples that utilize the
client to interact with a Concordium node, and `common`, that use various general functions from the library. To
three directories with examples `client`, containing examples that utilize the
client to interact with a Concordium node, `cis2` containing examples that helps interact with CIS-2 compliant smart contracts and `common`, that use various general functions from the library. To
run an example call:

```shell
yarn ts-node /path/to/example.ts [opts]
yarn run-example /path/to/example.ts [opts]
```

Where opts are any arguments that the example script takes.
2 changes: 1 addition & 1 deletion examples/shared/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Base58String, ContractAddress } from '@concordium/common-sdk';
import { Base58String, ContractAddress } from '@concordium/node-sdk';

export const parseAddress = (input: string): Base58String | ContractAddress => {
if (!input.includes(',')) {
Expand Down
2 changes: 1 addition & 1 deletion packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## 6.5.0 2023-5-03

### Added
- Utility functions `uleb128Decode` and `uleb128Encode` functions for decoding and encoding as unsigned leb128 respectively.
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@concordium/common-sdk",
"version": "6.4.2",
"version": "6.5.0",
"license": "Apache-2.0",
"engines": {
"node": ">=14.16.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export async function streamToList<A>(
/**
* Creates a function that takes either a `T` or `T[]` from a function that takes `T[]`.
*
* @param {(input: T[]) => Buffer} fun - A function that takes `T[]`
* @param {(input: T[]) => R} fun - A function that takes `T[]`
*
* @example
* const serializer = makeDynamicFunction(serialize);
Expand Down
6 changes: 6 additions & 0 deletions packages/nodejs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.4.0 2023-5-03

### Changed

- Bumped @concordium/common-sdk to 6.5.0. (Adds `CIS2Contract`)

## 6.3.0 2023-3-22

### Changed
Expand Down
4 changes: 2 additions & 2 deletions packages/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@concordium/node-sdk",
"version": "6.3.0",
"version": "6.4.0",
"description": "Helpers for interacting with the Concordium node",
"repository": {
"type": "git",
Expand Down Expand Up @@ -60,7 +60,7 @@
"build-dev": "tsc"
},
"dependencies": {
"@concordium/common-sdk": "6.4.2",
"@concordium/common-sdk": "6.5.0",
"@grpc/grpc-js": "^1.3.4",
"@protobuf-ts/grpc-transport": "^2.8.2",
"buffer": "^6.0.3",
Expand Down
6 changes: 6 additions & 0 deletions packages/web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 3.5.0 2023-5-03

### Changed

- Bumped @concordium/common-sdk to 6.5.0. (Adds `CIS2Contract`)

## 3.4.2 2023-4-21

### Changed
Expand Down
8 changes: 8 additions & 0 deletions packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ Wrappers for interacting with the Concordium node, for the web environment.
- [GetCryptographicParameters.html](#getcryptographicparametershtml)
- [GetAccountInfo.html](#getaccountinfohtml)
- [GetModuleSource.html](#getmodulesourcehtml)
- [SendCIS2Transfer.html](#sendcis2transferhtml)
- [SendCIS2UpdateOperator.html](#sendcis2updateoperatorhtml)
- [Build](#build)
- [Building for a release](#building-for-a-release)
- [Publishing a release](#publishing-a-release)
Expand Down Expand Up @@ -87,6 +89,12 @@ An example of getting the info of a given account using a JSON-RPC server.
## GetModuleSource.html
An example of getting the source of a model on the chain using a JSON-RPC server.

## SendCIS2Transfer.html
An example of sending a CIS2 "transfer" transaction by utilizing the `CIS2Contract` class. Please note that this example requires the [Concordium Wallet for Web](https://chrome.google.com/webstore/detail/concordium-wallet/mnnkpffndmickbiakofclnpoiajlegmg) to be installed to work.

## SendCIS2UpdateOperator.html
An example of sending a CIS2 "updateOperator" transaction by utilizing the `CIS2Contract` class. Please note that this example requires the [Concordium Wallet for Web](https://chrome.google.com/webstore/detail/concordium-wallet/mnnkpffndmickbiakofclnpoiajlegmg) to be installed to work.

# Build

## Building for a release
Expand Down
6 changes: 3 additions & 3 deletions packages/web/example/SendCIS2UpdateOperator.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
const address = {index: BigInt(index.value), subindex: 0n};
const contract = await concordiumSDK.CIS2Contract.create(client, address);

const checkedType = Object.values(type).find(field => field.checked).value;
const checkedType = Object.values(updateType).find(field => field.checked).value;
const update = {type: checkedType, address: operator.value};
//const update = {type: checkedType, address}; // Example with contract address, using same address as used to instantiate the contract class

Expand All @@ -56,9 +56,9 @@
<legend>
Update type:
</legend>
<input type="radio" name="type" id="type" value="add" checked /> Add
<input type="radio" name="type" id="updateType" value="add" checked /> Add
<br />
<input type="radio" name="type" id="type" value="remove" /> Remove
<input type="radio" name="type" id="updateType" value="remove" /> Remove
<br />
</fieldset>
<br />
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@concordium/web-sdk",
"version": "3.4.2",
"version": "3.5.0",
"license": "Apache-2.0",
"browser": "lib/concordium.min.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -48,7 +48,7 @@
"webpack-cli": "^4.9.2"
},
"dependencies": {
"@concordium/common-sdk": "6.4.2",
"@concordium/common-sdk": "6.5.0",
"@concordium/rust-bindings": "0.11.1",
"@grpc/grpc-js": "^1.3.4",
"@protobuf-ts/grpcweb-transport": "^2.8.2",
Expand Down
Loading

0 comments on commit b824687

Please sign in to comment.