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

Support Iroha 2.0.0-rc.1 + many new features #199

Draft
wants to merge 41 commits into
base: main
Choose a base branch
from

Conversation

0x009922
Copy link
Contributor

@0x009922 0x009922 commented Aug 7, 2024

Objectives:

  • Restructure crypto
  • Online API documentation - Online API documentation #154
    • Generate something based on Typedoc
    • Polish the generated documentation from technical side
    • Expand documentation coverage
    • Publish. GitHub Pages?
  • Re-implement Data Model
    • Use an in-house, Iroha schema-specific codegen; drop usage of @scale-codec/definition-compiler
    • Track auto-generated code in Git
    • Use Zod for validation, parsing, and just as a base for strong types
    • Use JS-native types for various fields (e.g. Date, JSON data native support etc)
    • Support polymorphism for user-provided inputs (e.g. )
    • Support defaults for various data (e.g. TransactionPayload's creation_time as new Date()
    • Integrate types from crypto + raw multihash hexes from user
    • Parse names (signatory@domain into AccountId, name#domain into AssetDefinition, name#domain1#signatory@domain2/name##signatory@domain into AssetId)
    • Integrate parity_scale_cli to test ABI compatibility
    • Query output automatic extraction tools
    • Re-iterate, polish
  • Client: universal Query API tool with automatic output extraction
  • Client: support queries streaming (live queries)
  • Client: support transaction verification
  • Client: rely fully on the native fetch (removing requirement to inject Node.js/Browser fetch instance)
  • Integration tests: easier peer setup via a single usePeer utility.
  • Update Iroha repository linking approach
  • Publish packages on the official NPM; consider versions reset

Closes #198

…edger-iroha#191)

- move singleton to `crypto-core`
- remove duplicated "wraps" from `crypto-target-*`, write it once in `crypto-core`
- remove dependency on `data-model` from `crypto-core`
Applies to `AccountId`, `AssetId`, `AssetDefinitionId` (special notations),
`Hash`, `Signature`, bytes (hex input)
Also remove rust-samples Rust project and
the whole postinstall hook (to be impl later)
- target newer Iroha version, with a new type-safe query system (hyperledger-iroha/iroha#4833)
- restructure modules
- do not format autogenerated code
@0x009922 0x009922 self-assigned this Aug 7, 2024
- fix cyclic deps in data model
- introduce unified query api
- enhance torii errors handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update SDK to rc.1
1 participant