Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
4b3ac58
feat!: update reference iroha, re-impl codegen, wip
0x009922 Jun 17, 2024
970c5d3
feat: pass tests
0x009922 Jun 17, 2024
0bdcb77
refactor: data model & client updates, wip
0x009922 Jun 17, 2024
679db49
chore: remove garbage
0x009922 Jun 20, 2024
f507e3e
fix!: update crypto
0x009922 Jun 20, 2024
f9597a4
refactor: more updates, wip
0x009922 Jun 21, 2024
53d6a90
chore: lint & format autofix
0x009922 Jun 21, 2024
7a408ec
fix: eslint errors
0x009922 Jun 21, 2024
3067186
test: fix codegen path
0x009922 Jun 21, 2024
1bbbeb8
fix: make node-integration-tests runnable! (wip)
0x009922 Jun 21, 2024
65ea7a5
refactor!: restructure crypto packages (#164, #191)
0x009922 Jun 27, 2024
eebca00
refactor!: move data-model-crypto utils into data model (wip)
0x009922 Jun 27, 2024
593e82a
refactor: remove docs-recipes
0x009922 Jun 28, 2024
b583d13
refactor: pass node e2e tests
0x009922 Jun 28, 2024
3e6a9f2
fix: pass all checks!
0x009922 Jul 1, 2024
2ca9f79
refactor: just import schema, do not use kagami for it
0x009922 Jul 1, 2024
a69c9e4
chore: format
0x009922 Jul 1, 2024
43d7531
fix: lints
0x009922 Jul 1, 2024
1e6a830
feat: setup TypeDoc & VitePress
0x009922 Jul 2, 2024
952eb2b
refactor!: update codegen, wip
0x009922 Jul 3, 2024
264f2d1
fix: freaking recursive enums!
0x009922 Jul 4, 2024
b80c228
refactor!(codegen): more robust whole-types transform
0x009922 Jul 4, 2024
5f45429
feat(codegen): plain unions for plain enums; unify `Algorithm` with c…
0x009922 Jul 4, 2024
e46cc29
feat(codegen): branded aliases
0x009922 Jul 4, 2024
bbdaa62
feat(codegen): replace Ip Addrs with tuples
0x009922 Jul 4, 2024
c6cd9e8
refactor(codegen): better enums runtime helpers; renames
0x009922 Jul 5, 2024
ddd0018
fix(data-model): implement core, init conversion tests
0x009922 Jul 5, 2024
c16d196
feat(data-model): use `Date` for timestamps
0x009922 Jul 5, 2024
f73c832
fix(data-model): update reference schema; durations & timestamps
0x009922 Jul 22, 2024
4f610eb
feat(data-model): add blank Timestamp and Duration impls
0x009922 Jul 22, 2024
84b9738
fix(data-model): chores
0x009922 Jul 22, 2024
4a5b374
feat(data-model): fortify `QueryOutputPredicate::TimeStamp`
0x009922 Jul 22, 2024
521a265
feat(data-model): enhance raw string inputs - names, hexes
0x009922 Jul 22, 2024
9f59ceb
feat(data-model): allow multihash hex for public keys
0x009922 Jul 24, 2024
d7a5aba
fix(data-model): complete core codecs, test durations
0x009922 Jul 24, 2024
137048c
feat(data-model): multiple enhancements
0x009922 Jul 24, 2024
fbd4cef
fix: pass typecheck
0x009922 Jul 25, 2024
339fe79
fix: pass `build:all` step
0x009922 Jul 25, 2024
417330a
test(client): fix API, run some tests (wip)
0x009922 Jul 25, 2024
46b4003
refactor!(data-model): major update
0x009922 Jul 30, 2024
7c33002
refactor!: bump Iroha, enhance client
0x009922 Aug 14, 2024
1f50817
refactor!: catch up with Iroha
0x009922 Nov 19, 2024
4470ff8
refactor!: update crypto
0x009922 Nov 20, 2024
ae37f89
test: extend e2e tests
0x009922 Nov 22, 2024
5d9be95
refactor: establish new codegen model and data model design
0x009922 Dec 27, 2024
bd6d5f0
refactor(data-model): complete codecs; remove brands; standardize cla…
0x009922 Jan 8, 2025
d0da247
refactor(data-model): rename variant types; generate explicit types f…
0x009922 Jan 8, 2025
3f2eeb4
refactor(data-model): NonZero as a class; render aliases; transform _…
0x009922 Jan 8, 2025
62ecd9b
refactor(data-model): replace `codecOf()` with direct access
0x009922 Jan 9, 2025
9849533
feat: find api, query builder, many tests; still raw though
0x009922 Jan 27, 2025
28b54a0
test: use `dprint` for codegen format; dump vitest version
0x009922 Jan 28, 2025
3aaceda
feat(data-model): support sorted sets (#100); generalise "traits"
0x009922 Jan 30, 2025
fd3ef6b
refactor(data-model): eliminate never-enum shortcuts
0x009922 Jan 30, 2025
d42fd17
refactor(data-model): `Name.parse` to `new Name`; simplify `RoleId` a…
0x009922 Jan 30, 2025
7790951
test: add permission query test
0x009922 Jan 30, 2025
0248897
test: use `iroha_codec` to for instructions in genesis
0x009922 Jan 30, 2025
0d9b239
feat(data-model): move `buildTransactionPayload` to data model
0x009922 Jan 30, 2025
9c06da2
docs: write some, rename structs
0x009922 Feb 3, 2025
f86a507
docs: update typedoc & vitepress
0x009922 Feb 3, 2025
24d6a21
Merge branch 'main' into t4
0x009922 Feb 3, 2025
32af9a2
misc: general cleaning (deps, lints, format etc)
0x009922 Feb 3, 2025
94fbfd7
refactor(client): drastically restructure the client
0x009922 Feb 4, 2025
42b1406
refactor(data-model): rename codec exports
0x009922 Feb 4, 2025
32f2e87
refactor(data-model): make use of `BytesVec`
0x009922 Feb 4, 2025
092bafb
refactor(client): change error names
0x009922 Feb 4, 2025
b05ee98
chore: dead code
0x009922 Feb 4, 2025
0fb22d7
fix: pass web integration tests
0x009922 Feb 4, 2025
7349ae0
refactor!: flatten repo, move to native TS/ESM modules (wip)
0x009922 Feb 5, 2025
3ac7a6b
refactor!: Deno!
0x009922 Feb 6, 2025
c8c70a9
fix: pass Deno check
0x009922 Feb 7, 2025
092643a
build: set up Deno tasks
0x009922 Feb 7, 2025
2690f60
chore: deno fmt
0x009922 Feb 7, 2025
418d8f7
refactor: lint & check
0x009922 Feb 10, 2025
667f058
chore: restore formatting of codegen
0x009922 Feb 10, 2025
cfc1794
refactor: rearrange packages, flatten further
0x009922 Feb 10, 2025
515746e
chore: remove tsconfigs
0x009922 Feb 10, 2025
6091da1
ci: draft first PR workflow
0x009922 Feb 10, 2025
8fc93f0
fix(ci): specify deno action version
0x009922 Feb 10, 2025
b6a2af4
fix(ci): use denoland, not actions
0x009922 Feb 10, 2025
4edd1ec
fix(ci): use `/bin/sh` for `build_wasm.sh` explicitly
0x009922 Feb 10, 2025
a37f832
fix(ci): cache iroha and crypto wasm
0x009922 Feb 10, 2025
2a42d3d
fix(ci): fix cache params
0x009922 Feb 10, 2025
0c400de
fix(ci): rust cache - use `workspaces` param
0x009922 Feb 10, 2025
0f77fcc
fix(ci): rust cache - fix typo
0x009922 Feb 10, 2025
5446219
fix(ci): use `/bin/bash`
0x009922 Feb 10, 2025
6fdf43a
fix(ci): add rust-src component
0x009922 Feb 10, 2025
ea57999
fix(ci): set cache-all-crates
0x009922 Feb 10, 2025
b7f2b07
fix(ci): change toolchain & target
0x009922 Feb 10, 2025
8f18432
feat(ci): include `.iroha/wasm` into cache
0x009922 Feb 10, 2025
e4651df
fix(ci): temporarily switch to my iroha fork
0x009922 Feb 10, 2025
2dbabfd
fix(build): more robust wasm task + cache check
0x009922 Feb 12, 2025
f365ef4
fix(build): remove extra mkdir
0x009922 Feb 12, 2025
42680dc
chore: draft publish task
0x009922 Feb 12, 2025
60649ed
chore: remove generated code from git
0x009922 Feb 12, 2025
e81e30b
refactor: eliminate slow types; fix lints and format
0x009922 Feb 12, 2025
30c788a
fix(ci): run codegen
0x009922 Feb 12, 2025
d82fae6
fix(build): move codegen to deno from vitest
0x009922 Feb 12, 2025
36d1b0a
test: use `toBe`, not snapshot (?)
0x009922 Feb 12, 2025
3a0b429
feat(ci): separate prep-crypto-wasm job
0x009922 Feb 12, 2025
6d17ccb
fix(ci): update hashfiles; use git iroha_crypto
0x009922 Feb 12, 2025
ed6b7d9
fix(ci): add rust target
0x009922 Feb 12, 2025
cce23e7
fix(ci): add more rust options
0x009922 Feb 12, 2025
9c15795
fix(ci): debug cache outputs
0x009922 Feb 12, 2025
d29c2fe
fix(ci): debug cache outputs (env)
0x009922 Feb 12, 2025
c717c59
fix(ci): debug cache outputs (more env, typo)
0x009922 Feb 12, 2025
8b7b291
fix(ci): debug cache outputs (toJson)
0x009922 Feb 12, 2025
d03fac5
fix(ci): use `id`...
0x009922 Feb 12, 2025
3d4fd4e
fix(ci): finally, fast crypto-wasm workflow
0x009922 Feb 12, 2025
7ea9ddc
feat(ci): add prep-iroha job
0x009922 Feb 12, 2025
40e0e17
feat(ci): new check job
0x009922 Feb 12, 2025
eee209a
fix(build): add iroha-build-utils, remove @iroha/iroha-source; pass t…
0x009922 Feb 13, 2025
1a129a1
fix(test): use absolute timestamp in snapshot
0x009922 Feb 13, 2025
3578b7f
fix(ci): add crypto-wasm Cargo.lock, fix wasm-pack version
0x009922 Feb 13, 2025
910a649
fix(test): increase timeouts, add retry
0x009922 Feb 13, 2025
e5715ee
chore: format
0x009922 Feb 13, 2025
721a7c1
fix(ci): setup node as well
0x009922 Feb 13, 2025
89caf49
fix(ci): remove `pnpm` cache from node action
0x009922 Feb 13, 2025
9a2fc63
fix(ci): install latest corepack
0x009922 Feb 13, 2025
91600fa
feat(ci): `publish` job
0x009922 Feb 13, 2025
f31489e
chore: format
0x009922 Feb 13, 2025
fd72872
refactor(core): merge crypto into the core
0x009922 Feb 13, 2025
91edebb
chore: rename workflow
0x009922 Feb 13, 2025
a4fdeb4
fix: lints
0x009922 Feb 13, 2025
8f5d7bb
fix(test): crypto refactor remnants
0x009922 Feb 13, 2025
7e01c0f
docs: wipe readme
0x009922 Feb 13, 2025
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
  •  
  •  
  •  
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/config.json

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

59 changes: 0 additions & 59 deletions .eslintrc.js

This file was deleted.

131 changes: 131 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Unified CI/CD
on:
pull_request:
branches: [main]
push:
branches: [main]
env:
IROHA_GIT: https://github.com/0x009922/iroha.git
IROHA_REV: 5302-expose-signature-payload
jobs:
prep-crypto-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: prep-cache
with:
path: |
prep/crypto-wasm
key: ${{ runner.os }}-${{ hashFiles('crypto-wasm/*') }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.prep-cache.outputs.cache-hit != 'true'
with:
cache: 'false'
toolchain: 'nightly-2024-09-09,stable'
target: 'wasm32-unknown-unknown'
components: rust-src
- uses: jetli/wasm-pack-action@v0.4.0
if: steps.prep-cache.outputs.cache-hit != 'true'
with:
version: 'v0.13.1'
- uses: denoland/setup-deno@v2
if: steps.prep-cache.outputs.cache-hit != 'true'
with:
deno-version: v2.x
- name: Build packages
if: steps.prep-cache.outputs.cache-hit != 'true'
run: deno task prep:crypto-wasm

prep-iroha:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
id: prep-cache
with:
path: |
prep/iroha
key: ${{ runner.os }}-${{ env.IROHA_GIT }}-${{ env.IROHA_REV }}
- uses: actions-rust-lang/setup-rust-toolchain@v1
if: steps.prep-cache.outputs.cache-hit != 'true'
with:
toolchain: 'nightly-2024-09-09'
target: 'wasm32-unknown-unknown'
components: rust-src
cache: 'false'
- uses: denoland/setup-deno@v2
if: steps.prep-cache.outputs.cache-hit != 'true'
with:
deno-version: v2.x
- name: Prepare Iroha artifacts
if: steps.prep-cache.outputs.cache-hit != 'true'
run: |
deno task prep:iroha --git $IROHA_GIT --git-rev $IROHA_REV
deno task prep:iroha:build

check:
needs: ['prep-crypto-wasm', 'prep-iroha']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: ${{ runner.os }}-${{ env.IROHA_GIT }}-${{ env.IROHA_REV }}
path: |
prep/iroha
- uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: ${{ runner.os }}-${{ hashFiles('crypto-wasm/*') }}
path: |
prep/crypto-wasm
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable pnpm via Corepack
run: |
echo "Before: corepack version => $(corepack --version || echo 'not installed')"
npm install -g corepack@latest
echo "After : corepack version => $(corepack --version)"
corepack enable pnpm
- name: Deno install
run: deno task install
- name: Deno check
run: deno task check:all
- name: Deno lint, fmt
run: |
deno lint
deno fmt --check
- name: Test
run: deno task test

publish:
if: github.event_name == 'push'
needs: [check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: ${{ runner.os }}-${{ env.IROHA_GIT }}-${{ env.IROHA_REV }}
path: |
prep/iroha
- uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
key: ${{ runner.os }}-${{ hashFiles('crypto-wasm/*') }}
path: |
prep/crypto-wasm
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Publish
run: deno task publish --token $JSR_TOKEN
env:
JSR_TOKEN: 'TODO'
14 changes: 10 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
.vite
node_modules
.DS_Store
dist
dist-tsc
/etc/api/tmp
/docs/api

esbuild-kit
v8-compile-cache-0

.pnpm-debug.log
.idea
.vscode

/prep
/.iroha
/packages/crypto-target-*/wasm-target
/packages/core/crypto/wasm-target
**/*_generated_.ts

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

7 changes: 0 additions & 7 deletions .prettierignore

This file was deleted.

51 changes: 0 additions & 51 deletions .prettierrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .vscode/settings.json

This file was deleted.

Loading