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

Release/10 #271

Merged
merged 214 commits into from
Oct 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
98efa8f
Compile web files to ES modules + change browser entrypoint to modules
soerenbf Aug 3, 2023
10ee405
Remove unneeded stream polyfill
soerenbf Aug 4, 2023
4e9a695
Get rid of "import * as" statements where applicable
soerenbf Aug 4, 2023
e879cef
Undo sideEffects declaration for now
soerenbf Aug 4, 2023
c671b91
Restructure code into scoped sections
soerenbf Aug 4, 2023
90b11c9
Explicitly declare public code
soerenbf Aug 4, 2023
0fde1e7
Convert common to hybrid module, publishing both cjs and esm
soerenbf Aug 7, 2023
69f3107
Adapt nodejs package to common hybrid
soerenbf Aug 7, 2023
b070276
Add ESM target for web
soerenbf Aug 7, 2023
4e75596
Fix html examples sdk import
soerenbf Aug 7, 2023
568a625
Adapt nodejs package to new resolution
soerenbf Aug 7, 2023
d13c205
Add tsconfig for compilation to allow check test files against package
soerenbf Aug 8, 2023
bb17edc
Re-export common entrypoints as entrypoints in both web/nodejs
soerenbf Aug 8, 2023
fa9916a
Remove util export from web/nodejs, add full export for migration
soerenbf Aug 9, 2023
d32e3b3
Working build
soerenbf Aug 10, 2023
35ccb63
Sync wasm
soerenbf Aug 10, 2023
871d44c
Export bundler entrypoint for rust-bindings
soerenbf Aug 10, 2023
632f88d
Remove logs
soerenbf Aug 10, 2023
fbf8053
Declare side-effects on package.json
soerenbf Aug 11, 2023
9c2b29e
Working build
soerenbf Aug 11, 2023
af7541c
Ensure index entrypoint remains the same across different module
soerenbf Aug 14, 2023
eaeec8b
Remove dependency on wasm in grpc client
soerenbf Aug 14, 2023
d257797
Correctly mark side effects
soerenbf Aug 14, 2023
df7185c
Split WASM into modules useful for dapps and wallets correspondingly
soerenbf Aug 14, 2023
7c026c3
Working wasm-pack build
soerenbf Aug 15, 2023
ae703d5
Adapt to split wasm module
soerenbf Aug 15, 2023
8f44447
Add schema export
soerenbf Aug 15, 2023
e4280ed
Add missing dependancy
soerenbf Aug 15, 2023
3f3c1f1
Fix tests
soerenbf Aug 16, 2023
fa12fa3
Move id wasm to wasm entrypoint
soerenbf Aug 16, 2023
b788d71
Clean up structure
soerenbf Aug 16, 2023
62e1b58
Re-export buffer/ in nodejs package
soerenbf Aug 16, 2023
7a38333
Remove esm target for nodejs package.. It became impossible to
soerenbf Aug 16, 2023
0e512b7
Change examples to be node16 compatible modules
soerenbf Aug 17, 2023
0309a8a
Merge branch 'separate-code-modules' of github.com:Concordium/concord…
soerenbf Aug 17, 2023
f19ce67
Make it possible to more easily alias bundler target
soerenbf Aug 17, 2023
329ef17
Merge branch 'cis4' into separate-code-modules
soerenbf Aug 17, 2023
0c277ca
Adapt deployment pipeline to changed module structure
soerenbf Aug 17, 2023
d86be88
Use base path importing dapp wasm
soerenbf Aug 17, 2023
5c563b7
Align nodejs exports with web exports
soerenbf Aug 18, 2023
c8b77c9
Testing
rasmus-kirk Sep 5, 2023
c0a3331
Fixed bigint serialization and deserialization
rasmus-kirk Sep 7, 2023
8edd6d6
Added correct serialization of types
rasmus-kirk Sep 7, 2023
0b3168f
Add module client to SDK and ccd-js-gen
limemloh Aug 28, 2023
bf0bb20
Update changelog
limemloh Aug 30, 2023
a3920bd
Mark properties as readonly in generated clients
limemloh Aug 30, 2023
16e9beb
Address review comments
limemloh Sep 6, 2023
dd14ca4
WIP undocumented schema parsing
limemloh Sep 4, 2023
5d9330d
Document and simplify schema type deserialization
limemloh Sep 7, 2023
5ae5323
Reuse VersionedModuleSource in instead of Module class
limemloh Sep 7, 2023
d810305
Merge branch 'main' into separate-code-modules
soerenbf Sep 11, 2023
4ec9a31
Restructure generated clients to be tree-shakable
limemloh Sep 11, 2023
86abcc2
updated changelog
rasmus-kirk Sep 12, 2023
e1c3dc8
Merge branch 'main' into fix-param-serialization
rasmus-kirk Sep 12, 2023
53253ec
Linted
rasmus-kirk Sep 12, 2023
d147827
Ensure no dependency on wasm for Web3 ID statement builder
soerenbf Sep 12, 2023
c9cb37a
Re-export web3-id entrypoint from `@concordium/common-sdk`
soerenbf Sep 12, 2023
b996874
Update changelogs
soerenbf Sep 12, 2023
63683b4
Document upgrading to v10 in upgrade guide
soerenbf Sep 12, 2023
77a2332
Removed unused src folder for rust-bindings
soerenbf Sep 12, 2023
ef5d62e
Import wasm as namespace
soerenbf Sep 12, 2023
c62433f
Fix CI
soerenbf Sep 12, 2023
b276389
Fix examples
soerenbf Sep 12, 2023
c3111e4
Fix upgrade guide
soerenbf Sep 12, 2023
59ff981
Fix CI
soerenbf Sep 12, 2023
21abffe
Build grpc-api as ESM
soerenbf Sep 13, 2023
f2f0b6b
Align handling of generated grpc types
soerenbf Sep 14, 2023
8a45a31
Update lint deps
soerenbf Sep 14, 2023
b912551
Update packages/common/test/deserialization.test.ts
rasmus-kirk Sep 14, 2023
340b9c5
Fixed changelog
rasmus-kirk Sep 14, 2023
b0c20ab
Generate both cjs and esm grpc types
soerenbf Sep 14, 2023
9c32f64
Merge pull request #263 from Concordium/fix-param-serialization
rasmus-kirk Sep 14, 2023
6e99dde
Fix CI
soerenbf Sep 14, 2023
1eede3c
Fix rust-cache
soerenbf Sep 14, 2023
26a0d61
Merge release/10 into separate-code-modules
soerenbf Sep 14, 2023
a85401a
Merge branch 'release/10' into separate-code-modules
soerenbf Sep 14, 2023
97edb35
Fix CI
soerenbf Sep 14, 2023
ca4242e
Align ts version
soerenbf Sep 14, 2023
854c9ef
Fix grpc cache miss
soerenbf Sep 14, 2023
38c213e
Fix typedoc
soerenbf Sep 15, 2023
9b15794
Fix markdown linting
soerenbf Sep 15, 2023
e03e269
Apply suggestions from code review
soerenbf Sep 15, 2023
78c1551
Compatibility and optimization docs
soerenbf Sep 15, 2023
c244193
Build ccd-js-gen as commonJS for compatibility
soerenbf Sep 15, 2023
72b4909
Fix md link
soerenbf Sep 15, 2023
583070a
Merge pull request #266 from Concordium/separate-code-modules
soerenbf Sep 15, 2023
42592cc
Merge remote-tracking branch 'origin/release/10' into parse-module-sc…
limemloh Sep 16, 2023
71a1feb
Address some review comments
limemloh Sep 16, 2023
d703fc0
Add unit tests for fetching embedded schema
limemloh Sep 17, 2023
614ad18
Checkout submodules when CI testing
limemloh Sep 18, 2023
d37da48
Merge pull request #262 from Concordium/parse-module-schema
limemloh Sep 18, 2023
0579c5c
Fix minor issues related to generating clients
limemloh Sep 18, 2023
efbae3c
Convert nodejs package to ESM
soerenbf Sep 19, 2023
fe1ef97
ESM file endings common
soerenbf Sep 19, 2023
336c042
All in on ESM
soerenbf Sep 20, 2023
b19ff78
Update docs
soerenbf Sep 20, 2023
967c6bb
Update changelogs
soerenbf Sep 20, 2023
f2f4173
Align web package with the rest
soerenbf Sep 20, 2023
0cebf76
Fix tests
soerenbf Sep 20, 2023
e7f4e3e
Add CI pipeline cache buster
soerenbf Sep 20, 2023
4693fb6
Fix ccd-js-gen example wCCD/client-metadata
limemloh Sep 20, 2023
6bbf9d6
Use schema for parameter when generating clients
limemloh Sep 15, 2023
3595549
Use new types in examples
limemloh Sep 18, 2023
c2e4989
ccd-js-gen: Generate type for parameter when init
limemloh Sep 18, 2023
4710a6e
Update changelog
limemloh Sep 22, 2023
bcb6457
Use schema for parameter when generating clients
limemloh Sep 15, 2023
c9f6bb9
Change api to use stricter types
limemloh Sep 20, 2023
b3887e3
Remove buffer from parts of the api and use newtypes
limemloh Sep 21, 2023
db3e0bb
Fix ccd-js-gen for U64 and I64
limemloh Sep 22, 2023
b4d4657
Publish as ESM only (#269)
soerenbf Sep 25, 2023
b528f5a
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-use-…
limemloh Sep 25, 2023
e1fc3ee
Remove dependency on Buffer being used externally (#273)
soerenbf Sep 26, 2023
4a9e2ab
Remove buffer dependency
soerenbf Sep 26, 2023
0e927b2
Fix buffer deprecation warning
soerenbf Sep 26, 2023
5a9c634
Remove JSON-RPC
soerenbf Sep 26, 2023
8b09769
Remove grpc-v1 from nodejs sdk
soerenbf Sep 26, 2023
fbef3b0
Remove types associated only with v1 api
soerenbf Sep 26, 2023
25d3576
Explicitly state version of types versioned by node protocol version
soerenbf Sep 26, 2023
16767b6
update changelogs
soerenbf Sep 26, 2023
8545066
Merge branch 'ccd-js-gen-use-schema' into api-strict-types
limemloh Sep 26, 2023
db50900
Cleanup
soerenbf Sep 27, 2023
819a4aa
Lint fix
soerenbf Sep 27, 2023
cf10c5c
Create grpc client from common with grpcweb transport
soerenbf Sep 27, 2023
a2006e5
Create subclasses for transport layers
soerenbf Sep 27, 2023
10c51da
Undo rename
soerenbf Sep 27, 2023
c1ddbf1
Add wallet functionality to common
soerenbf Sep 27, 2023
6f2cb62
Move nodejs specific client to subpath
soerenbf Sep 27, 2023
3108f81
Remove unused packages
soerenbf Sep 27, 2023
04adb0f
Fix example sdk imports
soerenbf Sep 27, 2023
90b3ff7
Fix unit tests
limemloh Sep 27, 2023
f939478
Update changelogs
limemloh Sep 28, 2023
a1edc78
Fix examples
limemloh Sep 28, 2023
428e1e1
Revert schema additions in generate client
limemloh Sep 28, 2023
548cc94
Ensure rust-bindings exposes target compatible with bundling for nodejs
soerenbf Sep 28, 2023
702243d
Expose esm web target
soerenbf Sep 28, 2023
2d562b6
Configure browser map
soerenbf Sep 28, 2023
f3ba044
Merge branch 'api-strict-types' into remove-grpc-v1
soerenbf Oct 2, 2023
efc4047
Fix failing tests
soerenbf Oct 2, 2023
906964e
Merge branch 'remove-grpc-v1' into platform-agnostic-sdk
soerenbf Oct 2, 2023
d4c05d3
Remove the need for custom expectToEqual
limemloh Oct 2, 2023
ff6a633
Use CcdAmount, TransactionExpiry and ModuleRef in api
limemloh Oct 2, 2023
0412dfa
Update changelog
limemloh Oct 2, 2023
5f50769
Use schema information for generating client param
limemloh Sep 28, 2023
15c174a
Fix ccd-js-gen cli issue on node17
limemloh Sep 29, 2023
ade0288
ccd-js-gen: Generate parseEvent for contracts
limemloh Sep 29, 2023
1e3d043
ccd-js-gen: Generate code for parsing return types
limemloh Sep 29, 2023
077c25a
Include tests depending on node connection (though not for CI)
soerenbf Oct 2, 2023
545893b
Merge pull request #270 from Concordium/api-strict-types
limemloh Oct 2, 2023
b9bd3b1
Merge branch 'api-strict-types' into remove-grpc-v1
soerenbf Oct 2, 2023
1bc31b7
Fix ccd-js-gen tokenMetadata example
limemloh Oct 2, 2023
0beaf38
Merge branch 'remove-grpc-v1' into platform-agnostic-sdk
soerenbf Oct 2, 2023
f0942d2
Remove grpc v1 (#274)
soerenbf Oct 2, 2023
8918814
Adapt documentation
soerenbf Oct 2, 2023
dbe2283
Fix documentation links
soerenbf Oct 2, 2023
b951915
Merge remote-tracking branch 'origin/release/10' into api-more-strict…
limemloh Oct 2, 2023
ac9f4ec
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-sche…
limemloh Oct 2, 2023
041da00
Update readmes
soerenbf Oct 3, 2023
b0ef8cc
Fix changelog
soerenbf Oct 3, 2023
20f2074
Add entries in documentation per pub module
soerenbf Oct 3, 2023
efc675c
Fix failing tests
soerenbf Oct 3, 2023
db46bcd
Fix examples
soerenbf Oct 3, 2023
c4b4b77
Merge branch 'release/10' into platform-agnostic-sdk
soerenbf Oct 3, 2023
0c3a47e
Upgrade bs58check to get browser compatibility
soerenbf Oct 4, 2023
15cfbfa
Move nodejs crypto dependants to nodejs subpath
soerenbf Oct 4, 2023
353536a
Remove fetch type def
soerenbf Oct 4, 2023
6ba4ca6
Fix tests
soerenbf Oct 4, 2023
57017ce
Apply suggestions from code review
soerenbf Oct 4, 2023
23840a1
Clean up based on PR review
soerenbf Oct 4, 2023
065e221
Platform agnostic sdk (#278)
soerenbf Oct 4, 2023
1d5137f
Merge remote-tracking branch 'origin/platform-agnostic-sdk' into api-…
limemloh Oct 4, 2023
4507a95
Merge remote-tracking branch 'origin/release/10' into api-more-strict…
limemloh Oct 4, 2023
07bf958
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-sche…
limemloh Oct 4, 2023
4f67e4a
Fix unit tests
limemloh Oct 4, 2023
a04323c
Merge pull request #276 from Concordium/api-more-strict-types
limemloh Oct 5, 2023
e22d623
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-sche…
limemloh Oct 5, 2023
089bbc0
Address review comments
limemloh Oct 5, 2023
09977d0
Extend base-config in ccd-js-gen tsconfig
limemloh Oct 5, 2023
d963d8a
Use ModuleReference in GetModuleList
limemloh Oct 5, 2023
1a35f73
Fix getModuleList example
limemloh Oct 6, 2023
9eff2ce
Merge pull request #280 from Concordium/fix-type-module-list
limemloh Oct 6, 2023
b894f2a
Add documentation to the readme of ccd-js-gen
limemloh Oct 5, 2023
779312e
Add metadata field for invoking smart contracts
limemloh Oct 9, 2023
d4313f3
Types json serialize (#279)
soerenbf Oct 11, 2023
9982006
Upgrade @noble/ed25519 to avoid implicit use of crypto module (#285)
soerenbf Oct 11, 2023
79930d1
Address review comments
limemloh Oct 11, 2023
208d4d0
Sanitize contract name used for generating filename
limemloh Oct 11, 2023
eac464b
Change naming convention of generated smart contract clients
limemloh Oct 12, 2023
a49d81b
Update documentation with recent changes
limemloh Oct 12, 2023
a57fb40
Change eslint prettier rules to be warnings instead
limemloh Oct 12, 2023
ad93b49
Merge pull request #286 from Concordium/eslint-prettier-warnings
limemloh Oct 12, 2023
d340b75
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-sche…
limemloh Oct 12, 2023
5285fa1
Merge pull request #275 from Concordium/ccd-js-gen-schema-param
limemloh Oct 12, 2023
362ba71
Beta bump (#287)
soerenbf Oct 12, 2023
225d278
Delete gitignores from rust-bindings libs
soerenbf Oct 12, 2023
92a1a17
Add basic unit test for ccd-js-gen
limemloh Oct 12, 2023
1adb673
Add documentation in unit tests
limemloh Oct 16, 2023
0ea9380
Address review comments
limemloh Oct 16, 2023
64ca9de
Merge pull request #282 from Concordium/ccd-js-gen-docs
limemloh Oct 18, 2023
2734584
Manual merge of 'origin/ccd-js-gen-docs' into release/10
limemloh Oct 18, 2023
5c4783a
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-test
limemloh Oct 19, 2023
64a3512
Address review comments and fix node shim
limemloh Oct 19, 2023
6d153e7
Merge branch 'main' into release/10
soerenbf Oct 19, 2023
576a22b
Corrections to documentation
soerenbf Oct 19, 2023
32ea700
Fix md-lint warnings
limemloh Oct 19, 2023
493473f
Disable line length md lint rule
soerenbf Oct 19, 2023
eb8289c
Merge branch 'main' into release/10
soerenbf Oct 19, 2023
669e4f5
Merge remote-tracking branch 'origin/release/10' into ccd-js-gen-test
limemloh Oct 19, 2023
cfa55f7
Merge pull request #288 from Concordium/ccd-js-gen-test
limemloh Oct 19, 2023
5c769aa
Bugfix/release 10 (#295)
soerenbf Oct 19, 2023
81a6312
Fix test
soerenbf Oct 19, 2023
7cdeb90
Fixed `PendingUpdate` type (#292)
rasmus-kirk Oct 19, 2023
227bc1a
Fix erronous PR merge, next RC
soerenbf Oct 19, 2023
f1ca9d5
Remove WASM pack install step from CI (already included as dev dep)
soerenbf Oct 19, 2023
8477eb7
Version bump web sdk 7.0 + rust bindings 2.0
soerenbf Oct 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
88 changes: 88 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
module.exports = {
env: {
browser: true,
es2020: true,
},
extends: [
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
tsconfigRootDir: __dirname,
project: [
'./packages/**/tsconfig.json',
'./docs/**/tsconfig.json',
'**/tsconfig.eslint.json',
],
},
plugins: ['@typescript-eslint', 'import'],
rules: {
'prettier/prettier': 'warn',
quotes: [
2,
'single',
{
avoidEscape: true,
},
],
'import/no-unresolved': [
2,
{
ignore: [
'@concordium/rust-bindings',
'grpc-api',
'^#.+$', // ESLint resolver does not support subpath imports: https://github.com/import-js/eslint-plugin-import/issues/1868.
],
},
],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: ['**/*/test/*', '**/*.config.js'],
},
],
'@typescript-eslint/no-unused-vars': [
'warn',
{
ignoreRestSiblings: true,
},
],
},
overrides: [
{
files: ['*.config.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'import/namespace': 'off',
},
},
],
ignorePatterns: [
'**/pkg/**/',
'**/dist/**/',
'**/lib/**/',
'deps/**/*',
'**/src/grpc-api/*',
'typedoc/**',
],
settings: {
'import/ignore': ['bs58check'],
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
exports: true,
typescript: {
project: ['packages/*/tsconfig.json'],
},
node: {
project: ['packages/*/tsconfig.json'],
},
},
},
};
54 changes: 0 additions & 54 deletions .eslintrc.json

This file was deleted.

36 changes: 24 additions & 12 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
Expand Down Expand Up @@ -38,7 +38,8 @@ jobs:
with:
workspaces: |
packages/rust-bindings
deps/concordium-deps
deps/concordium-base/rust-src
deps/concordium-base/concordium-contracts-common

- name: Get wasm-pack
uses: jetli/[email protected]
Expand All @@ -49,11 +50,22 @@ jobs:
id: yarn-cache
uses: actions/cache@v3
with:
path: node_modules
path: |
./node_modules
./docs/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}

- name: Cache GRPC
id: cache-grpc
uses: actions/cache@v3
with:
path: |
./packages/sdk/src/grpc-api
key: ${{ runner.os }}-grpc-${{ hashFiles('deps/concordium-base/concordium-grpc-api') }}
restore-keys: ${{ runner.os }}-grpc

- name: Get dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --immutable
Expand All @@ -66,19 +78,17 @@ jobs:
with:
name: build-release
path: |
packages/*/lib
packages/*/grpc
packages/*/package.json
packages/*/README.md
packages/rust-bindings/pkg/*/concordium_rust_bindings*
./packages/sdk/lib
./packages/sdk/src
./packages/rust-bindings/lib
./packages/*/package.json
./packages/*/README.md

build-typedoc:
runs-on: ubuntu-22.04
needs: build
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"

- uses: actions/setup-node@v3
with:
Expand All @@ -93,11 +103,13 @@ jobs:
- name: Restore cached dependencies
uses: actions/cache/restore@v3
with:
path: node_modules
path: |
./node_modules
./docs/node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}

- name: Generate typedoc documentation
run: yarn typedoc
run: yarn build:docs

- name: Store typedoc
uses: ./.github/actions/upload-artifact
Expand Down
Loading