Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Broken release/2.x branch tests #186

Merged
merged 93 commits into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
8c42450
test: Added linked resource collection metadata extended tests (#132)
Eengineer1 Feb 13, 2023
a832043
build!: Transition to ESM as hybrid package (#133)
Eengineer1 Feb 14, 2023
a62b46f
chore(release): 3.0.0-develop.1 [skip ci]
semantic-release-bot Feb 14, 2023
690109e
build: Tidy imports, cleanup redundancy (#134)
Eengineer1 Feb 14, 2023
e017c3b
chore(release): 3.0.0-develop.2 [skip ci]
semantic-release-bot Feb 14, 2023
9a5d53c
fix: Removed traces of directory imports (#135)
Eengineer1 Feb 14, 2023
5d422ef
chore(release): 3.0.0-develop.3 [skip ci]
semantic-release-bot Feb 14, 2023
2b8ab21
build: Switched to ESM-first exports (#136)
Eengineer1 Feb 14, 2023
41bb5a0
chore(release): 3.0.0-develop.4 [skip ci]
semantic-release-bot Feb 14, 2023
be15b6a
build: Bump relevant to latest
Eengineer1 Feb 15, 2023
e082318
chore(release): 3.0.0-develop.5 [skip ci]
semantic-release-bot Feb 15, 2023
9b87c43
Merge branch 'main' into develop
Eengineer1 Feb 15, 2023
8865de0
chore(release): 3.0.0-develop.6 [skip ci]
semantic-release-bot Feb 15, 2023
9a8e105
Merge pull request #137 from cheqd/develop
Eengineer1 Feb 15, 2023
7c8bfe8
chore(release): 3.0.0 [skip ci]
semantic-release-bot Feb 15, 2023
674b3b9
ci: Sync and update workflows (#139)
ankurdotb Feb 16, 2023
d69f1c6
chore(deps-dev): Bump jest from 29.4.2 to 29.4.3 (#140)
dependabot[bot] Feb 16, 2023
b09c681
fix: Bugfix on conditional context injection (#142)
Eengineer1 Feb 17, 2023
194c05d
chore(release): 3.0.1-develop.1 [skip ci]
semantic-release-bot Feb 17, 2023
854232c
fix: Bugfix on conditional context injection (#143)
Eengineer1 Feb 17, 2023
6497799
fix: Bugfix on conditional context injection
Eengineer1 Feb 17, 2023
3500b69
build: Node downgrade
Eengineer1 Feb 17, 2023
9fd1c44
chore(release): 3.0.1 [skip ci]
semantic-release-bot Feb 17, 2023
5bc6b2d
Merge branch 'main' into cjs
Eengineer1 Feb 17, 2023
e7c3706
chore(release): 3.0.2 [skip ci]
semantic-release-bot Feb 17, 2023
1ad9fb1
chore(deps-dev): Bump @types/node from 18.13.0 to 18.14.0 (#144)
dependabot[bot] Feb 20, 2023
24d2b47
build(deps): Bump file-type from 18.2.0 to 18.2.1 (#145)
dependabot[bot] Feb 20, 2023
88ac9c5
chore(release): 3.0.2-develop.1 [skip ci]
semantic-release-bot Feb 20, 2023
e9f64e7
chore: Bump package lock
ankurdotb Feb 20, 2023
097ae78
chore(release): Bring down bumped changes from develop (#146)
ankurdotb Feb 20, 2023
1c9ea6b
chore(release): 3.0.2 [skip ci]
semantic-release-bot Feb 20, 2023
67a215c
chore(release): Bump package
ankurdotb Feb 20, 2023
4236a83
chore(release): 3.0.2 [skip ci]
semantic-release-bot Feb 20, 2023
62186b8
build(deps-dev): Bump @types/uuid from 9.0.0 to 9.0.1
dependabot[bot] Feb 27, 2023
13ca07c
build(deps-dev): Bump @types/node from 18.14.0 to 18.14.2
dependabot[bot] Feb 27, 2023
452fe1c
chore: Add included files to package.json for NPM package
ankurdotb Feb 27, 2023
b90b397
bump package
ankurdotb Feb 27, 2023
c7cc30a
Merge branch 'develop' into dependabot/npm_and_yarn/develop/types/uui…
ankurdotb Feb 27, 2023
c41e217
Update CHANGELOG.md
ankurdotb Feb 27, 2023
6da1fc1
Fix workflow
ankurdotb Feb 27, 2023
6755ead
Update test.yml
ankurdotb Feb 27, 2023
20baef5
chore(deps-dev): Bump @types/uuid from 9.0.0 to 9.0.1 (#148)
ankurdotb Feb 27, 2023
b4f696d
build(deps-dev): Bump @types/node from 18.14.0 to 18.14.2
dependabot[bot] Feb 27, 2023
8d888b3
Merge branch 'develop' into dependabot/npm_and_yarn/develop/types/nod…
ankurdotb Feb 27, 2023
75380a9
Merge branch 'dependabot/npm_and_yarn/develop/types/node-18.14.2' of …
ankurdotb Feb 27, 2023
099c044
chore(release): 3.0.2-develop.2 [skip ci]
semantic-release-bot Feb 27, 2023
405a8a9
bump package
ankurdotb Feb 27, 2023
ff06d2f
Merge branch 'develop' into dependabot/npm_and_yarn/develop/types/nod…
ankurdotb Feb 27, 2023
37c4a91
chore(deps-dev): Bump @types/node from 18.14.0 to 18.14.2 (#149)
ankurdotb Feb 27, 2023
714be3a
chore(release): 3.0.2-develop.3 [skip ci]
semantic-release-bot Feb 27, 2023
2768ae6
chore: Bump package lock
ankurdotb Feb 28, 2023
1dff91d
chore(release): 3.0.2 [skip ci]
semantic-release-bot Feb 28, 2023
72e5bcf
feat: Updated ts-proto package
ankurdotb Feb 28, 2023
6d33439
chore(release): 3.1.0-develop.1 [skip ci]
semantic-release-bot Feb 28, 2023
6b8f818
chore(release): 3.1.0 [skip ci]
semantic-release-bot Feb 28, 2023
bb718ef
Merge branch 'develop'
ankurdotb Feb 28, 2023
84e31fa
chore(release): 3.1.1 [skip ci]
semantic-release-bot Feb 28, 2023
7b709f4
chore(deps-dev): Bump @types/node to 18.14.4
ankurdotb Mar 2, 2023
cdbd38f
build(deps-dev): Bump @types/node from 18.14.4 to 18.14.6
dependabot[bot] Mar 6, 2023
9341017
bump package
ankurdotb Mar 9, 2023
37536db
chore(deps-dev): Bump @types/node from 18.14.4 to 18.14.6 (#150)
ankurdotb Mar 9, 2023
57a693d
chore(release): 3.1.2-develop.1 [skip ci]
semantic-release-bot Mar 9, 2023
f6ac275
feat: Update @cheqd/ts-proto from 3.1.2 to 3.1.3 (#151)
ankurdotb Mar 9, 2023
ffd82ef
chore(release): 3.2.0 [skip ci]
semantic-release-bot Mar 9, 2023
3d2e46a
feat: Remove file-type (#163)
DaevMithran Mar 29, 2023
c90f92e
Merge main into cjs
DaevMithran Mar 30, 2023
11b0266
chore(deps): Bump amannn/action-semantic-pull-request from 5.1.0 to 5…
dependabot[bot] Mar 30, 2023
53829df
docs: Fix broken links
ankurdotb Mar 30, 2023
40df737
build: Sync main branch changes to CommonJS (#167)
ankurdotb Apr 3, 2023
a24103f
build: Bump deps to latest where relevant
Eengineer1 Apr 3, 2023
deded43
build: Resolved merge
Eengineer1 Apr 3, 2023
878689d
build: Switched to distinct tag format
Eengineer1 Apr 3, 2023
e9887c6
build: Switched to explicit def
Eengineer1 Apr 3, 2023
bfd73df
chore(release): 1.0.0 [skip ci]
semantic-release-bot Apr 3, 2023
de5ac88
build: Revert to bare tag
Eengineer1 Apr 3, 2023
d7de5dc
Merge branch 'commonjs' of https://github.com/cheqd/sdk into commonjs
Eengineer1 Apr 3, 2023
dbd9e28
Revert "chore(release): 1.0.0 [skip ci]"
Eengineer1 Apr 3, 2023
25ffe3f
build: Switched history to match explicit versioning
Eengineer1 Apr 3, 2023
97539f9
chore(release): 3.2.1 [skip ci]
semantic-release-bot Apr 3, 2023
9af5faf
feat: Add @cosmjs/crypto as direct dependency (#174)
DaevMithran Apr 3, 2023
328f66d
chore(release): 3.3.0 [skip ci]
semantic-release-bot Apr 3, 2023
73984a4
build: Update ts-proto to cjs (#176)
DaevMithran Apr 6, 2023
2306a0b
chore(release): 3.3.1 [skip ci]
semantic-release-bot Apr 6, 2023
a67b3e1
feat: Bump resource gas (#178)
DaevMithran Apr 14, 2023
e5ce864
chore(release): 3.4.0 [skip ci]
semantic-release-bot Apr 14, 2023
eb7ba4b
Sync everything else
ankurdotb Apr 14, 2023
f8834b4
Bump
ankurdotb Apr 14, 2023
558d077
Merge branch 'release/2.x' into fix-2.x
ankurdotb Apr 14, 2023
9e50061
feat: Bump resource fee (#181)
ankurdotb Apr 14, 2023
8072923
chore(release): Update installation instructions
ankurdotb Apr 14, 2023
ddecebf
feat(docs): Attempt v3.5.0 bump
ankurdotb Apr 14, 2023
69ac90c
chore(docs): Attempt release again
ankurdotb Apr 14, 2023
7846307
chore(release): Update installation instructions
ankurdotb Apr 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Download binary artifact
run: |
mkdir -p ${{ env.RUNNER_BIN_DIR }}
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< "$(curl --silent https://api.github.com/repos/cheqd/cheqd-node/releases)")")"
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(curl -s "https://api.github.com/repos/cheqd/cheqd-node/tags" | jq -r '.[0].name')")"
wget -c "https://github.com/cheqd/cheqd-node/releases/download/v${CHEQD_NODE_VERSION}/cheqd-noded-${CHEQD_NODE_VERSION}-linux-amd64.tar.gz"
tar -xvf "cheqd-noded-${CHEQD_NODE_VERSION}-linux-amd64.tar.gz" -C ${{ env.RUNNER_BIN_DIR }}
sudo chmod +x ${{ env.RUNNER_BIN_DIR }}/cheqd-noded
Expand All @@ -67,7 +67,7 @@ jobs:
- name: Set up Docker localnet
working-directory: ./docker/localnet
run: |
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(jq -r 'map(select(.prerelease)) | first | .tag_name' <<< "$(curl --silent https://api.github.com/repos/cheqd/cheqd-node/releases)")")"
CHEQD_NODE_VERSION="$(cut -c2- <<< "$(curl -s "https://api.github.com/repos/cheqd/cheqd-node/tags" | jq -r '.[0].name')")"
BUILD_IMAGE="ghcr.io/cheqd/cheqd-node:$CHEQD_NODE_VERSION"
export BUILD_IMAGE
docker compose up --detach
Expand All @@ -81,4 +81,6 @@ jobs:
run: npm ci

- name: Run Tests
run: npm test
run: |
sleep 1m
npm test
1 change: 0 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
branches:
- main
- develop
- commonjs
- release/**
types:
- opened
Expand Down
24 changes: 11 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# Changelog

## [3.4.0](https://github.com/cheqd/sdk/compare/3.3.1-commonjs...3.4.0-commonjs) (2023-04-14)
## [3.3.0-develop.4](https://github.com/cheqd/sdk/compare/3.3.0-develop.3...3.3.0-develop.4) (2023-04-14)

## [3.3.0-develop.3](https://github.com/cheqd/sdk/compare/3.3.0-develop.2...3.3.0-develop.3) (2023-04-14)

### Features

* Bump resource gas ([#178](https://github.com/cheqd/sdk/issues/178)) ([a67b3e1](https://github.com/cheqd/sdk/commit/a67b3e14589569b5ad01e8d0b0bdfd8370cb4f9a))

## [3.3.1](https://github.com/cheqd/sdk/compare/3.3.0-commonjs...3.3.1-commonjs) (2023-04-06)
## [3.3.0-develop.2](https://github.com/cheqd/sdk/compare/3.3.0-develop.1...3.3.0-develop.2) (2023-04-14)

## [3.3.0](https://github.com/cheqd/sdk/compare/3.2.1-commonjs...3.3.0-commonjs) (2023-04-03)
## [3.3.0-develop.1](https://github.com/cheqd/sdk/compare/3.2.1-develop.1...3.3.0-develop.1) (2023-04-14)


### Features

* Add @cosmjs/crypto as direct dependency ([#174](https://github.com/cheqd/sdk/issues/174)) ([9af5faf](https://github.com/cheqd/sdk/commit/9af5faf6336bae048860669a83da598dd704818c))
* Bump resource gas ([#179](https://github.com/cheqd/sdk/issues/179)) ([8de317b](https://github.com/cheqd/sdk/commit/8de317bdd2521f5b6f8728d049f7a3f647d6d26b))

## [3.2.1](https://github.com/cheqd/sdk/compare/3.2.0-commonjs...3.2.1-commonjs) (2023-04-03)
## [3.2.1](https://github.com/cheqd/sdk/compare/3.2.0...3.2.1) (2023-04-05)

## [3.2.0](https://github.com/cheqd/sdk/compare/3.1.1...3.2.0) (2023-03-09)
## [3.2.1-develop.1](https://github.com/cheqd/sdk/compare/3.2.0...3.2.1-develop.1) (2023-04-03)

## [3.2.0](https://github.com/cheqd/sdk/compare/3.1.1...3.2.0) (2023-03-09)

### Features

* Update @cheqd/ts-proto from 3.1.2 to 3.1.3 ([#151](https://github.com/cheqd/sdk/issues/151)) ([f6ac275](https://github.com/cheqd/sdk/commit/f6ac2759255ed612a99aff35d497468ff4530e11))

## [3.2.0-develop.1](https://github.com/cheqd/sdk/compare/3.1.2-develop.1...3.2.0-develop.1) (2023-03-09)

## [3.1.2-develop.1](https://github.com/cheqd/sdk/compare/3.1.1...3.1.2-develop.1) (2023-03-09)

## [3.1.1](https://github.com/cheqd/sdk/compare/3.1.0...3.1.1) (2023-02-28)
Expand All @@ -44,11 +44,9 @@

## [3.0.2-develop.2](https://github.com/cheqd/sdk/compare/3.0.2-develop.1...3.0.2-develop.2) (2023-02-27)

## [3.0.2-develop.1](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2-develop.1) (2023-02-20)

## [3.0.2](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2) (2023-02-20)

## [3.0.2](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2) (2023-02-17)
## [3.0.2-develop.1](https://github.com/cheqd/sdk/compare/3.0.1...3.0.2-develop.1) (2023-02-20)

## [3.0.1](https://github.com/cheqd/sdk/compare/3.0.0...3.0.1) (2023-02-17)

Expand Down
35 changes: 31 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,55 @@

## ℹ️ Overview

The purpose of this [`@cheqd/sdk` NPM package](https://www.npmjs.com/package/@cheqd/sdk) is to provide a mechanism of integrating cheqd functionality in an application *without* using a 3rd-party SDK like [Veramo SDK for cheqd](https://docs.cheqd.io/identity/guides/sdk/veramo-sdk-for-cheqd).
The purpose of this [`@cheqd/sdk` NPM package](https://www.npmjs.com/package/@cheqd/sdk) is to provide base functionality for interacting with cheqd network. It combines the DID and [DID-Linked Resources](https://docs.cheqd.io/identity/guides/did-linked-resources) modules, and putting them into a Cosmos transaction wrapper using [CosmJS](https://github.com/cosmos/cosmjs).

This package is consumed by other SDKs/libraries such as [Veramo SDK for cheqd](https://docs.cheqd.io/identity/guides/sdk/veramo-sdk-for-cheqd) and [Hyperledger Aries Framework JavaScript (AFJ)](https://github.com/hyperledger/aries-framework-javascript) to add cheqd network support.

This package includes:

* [TypeScript Protobuf definitions](https://github.com/cheqd/ts-proto) for custom cheqd Cosmos SDK modules
* [CosmJS](https://github.com/cosmos/cosmjs), for base Cosmos SDK module functions

If you are using [Veramo SDK for cheqd](https://docs.cheqd.io/identity/guides/sdk/veramo-sdk-for-cheqd), this SDK package is automatically installed and consumed by the [`@cheqd/did-provider-cheqd` Veramo plugin](https://github.com/cheqd/did-provider-cheqd).

## 🆔 Features

Our identity documentation site provides [tutorials for utilising the identity features](https://docs.cheqd.io/identity/overview/readme) on cheqd network.

With this SDK, developers are able to:

* ✅ Create a `did:cheqd` method DID
* ✅ Update a `did:cheqd` method DID
* ✅ Create Resource within a `did:cheqd` method DID
* ✅ Deactivate a `did:cheqd` method DID
* ✅ Create or update [a DID-Linked Resource](https://docs.cheqd.io/identity/tutorials/did-linked-resources/create-resource)

### 🧰 Tooling

* ✅ **Raw payload creator**: Enables users to generate a valid raw DID payload which is ready to be populated, depending on the use case. For example, `did-provider-cheqd` leverages this helper in the CLI application.
* ✅ **Identity key converter**: Enables users to convert specific key formats from different kinds of SDKs, by transforming the input keys into valid sign inputs for a cheqd specific DID transaction (e.g. `createDidDocTx`, `updateDidDocTx`). For example, the Veramo SDK for cheqd uses this helper to enable users to pass a key in a Veramo SDK specific format to a cheqd sign input keys interface.

## 🧑‍💻 Developer Guide

### Installing in ESM projects

To install this NPM package in a project that needs ESM builds, use our `latest` release channel to install the stable version:

```bash
npm install @cheqd/sdk@latest
```

To install beta releases instead, use our `-develop` releases from the `beta` channel:

```bash
npm install @cheqd/sdk@beta
```

### Installing in CommonJS projects

To install this NPM package in a project that needs CommonJS builds, use our `cjs` release channel to install the latest stable CommonJS version:

```bash
npm install @cheqd/sdk@cjs
```

## 📖 Documentation

Our [identity documentation site](https://docs.cheqd.io/identity/) explains how `@cheqd/sdk` is [consumed in Veramo SDK for cheqd](https://docs.cheqd.io/identity/guides/sdk/veramo-sdk-for-cheqd) (as an example of how this package can be consumed).
Expand Down