Commit 78a106f
Utilize Metadata V15 (#1041)
* Update frame-metadata to the latest branch
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Add outer enum types
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Extend the extrinsic with address,call,sign,extra types
Signed-off-by: Alexandru Vasile <[email protected]>
* Codegen test Event, Error and Call for outer enums
Signed-off-by: Alexandru Vasile <[email protected]>
* Revert "Codegen test Event, Error and Call for outer enums"
This reverts commit db542dc.
* Update frame-metadata from the latest release
Signed-off-by: Alexandru Vasile <[email protected]>
* Update scale-info
Signed-off-by: Alexandru Vasile <[email protected]>
* codegen/error: Support v15 message
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Convert v14 to v15
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/retain: Adjust to extrinsic type for V15
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/validation: Adjust hashing for extrinsic types V15
Signed-off-by: Alexandru Vasile <[email protected]>
* scripts: Fetch V15 and output codegen for full_client only
Signed-off-by: Alexandru Vasile <[email protected]>
* subxt/blocks: Use extrinsic types directly
Signed-off-by: Alexandru Vasile <[email protected]>
* testing: Fetch V15 for build script
Signed-off-by: Alexandru Vasile <[email protected]>
* artifacts: Generate from latest polkadot version
Signed-off-by: Alexandru Vasile <[email protected]>
* codegen: Fetch legacy with old API for v14 only
Signed-off-by: Alexandru Vasile <[email protected]>
* rpc: Fetch metadata versions
Signed-off-by: Alexandru Vasile <[email protected]>
* client: Fetch latest unstable then V15 then V14
Signed-off-by: Alexandru Vasile <[email protected]>
* testing: Adjust testing API to latest interface
Signed-off-by: Alexandru Vasile <[email protected]>
* Adjust clippy
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Generate the `RuntimeError` type for V14
Signed-off-by: Alexandru Vasile <[email protected]>
* Remove testing files
Signed-off-by: Alexandru Vasile <[email protected]>
* testing/staking: Remove controller account from bond
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/validation: Use specific variants for hashing RuntimeCall
Signed-off-by: Alexandru Vasile <[email protected]>
* XXX: Custom Substrate binary: must revert with next release
Signed-off-by: Alexandru Vasile <[email protected]>
* XXX: To revert: CI use hardcoded substrate
Signed-off-by: Alexandru Vasile <[email protected]>
* codegen: Use v15 outer enum types
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Retain outer enum types
Signed-off-by: Alexandru Vasile <[email protected]>
* codegen: Use outer enum types instead of generating them
Signed-off-by: Alexandru Vasile <[email protected]>
* Update artifacts
Signed-off-by: Alexandru Vasile <[email protected]>
* Revert "XXX: Custom Substrate binary: must revert with next release"
This reverts commit e970529.
Revert "XXX: To revert: CI use hardcoded substrate"
This reverts commit b18a5a0.
* testing: Include env for dummy wat contracts
Signed-off-by: Alexandru Vasile <[email protected]>
* Adjsut clippy
Signed-off-by: Alexandru Vasile <[email protected]>
* ci: Use new link for fetching latest substrate binary
Signed-off-by: Alexandru Vasile <[email protected]>
* tests: Include dummy RuntimeEvent into test metadata
Signed-off-by: Alexandru Vasile <[email protected]>
* ci: Bump light-client timeout tests to 25min
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/validation: Use specific pallets as provided
Signed-off-by: Alexandru Vasile <[email protected]>
* testing: Rename metadata constant
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Use call_ty instead of signature_ty
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Rename retaining variant function
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Use Option<&[&str]>
Signed-off-by: Alexandru Vasile <[email protected]>
* online_client: Fetch V15 metadata explicitely
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/validation: Include the hash of the outer enum types
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Fix sign typo
Signed-off-by: Alexandru Vasile <[email protected]>
* artifacts: Update the artifacts
Signed-off-by: Alexandru Vasile <[email protected]>
* subxt: Remove RootError RootEvent and RootExtrinsic traits
Signed-off-by: Alexandru Vasile <[email protected]>
* Update polkadot.rs
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/tests: Ensure outer enum variants are retained
Signed-off-by: Alexandru Vasile <[email protected]>
* scripts: Include multiple pallets for our decoding purposes
Signed-off-by: Alexandru Vasile <[email protected]>
* subxt: Apply clippy
Signed-off-by: Alexandru Vasile <[email protected]>
* artifacts: Update small metadata
Signed-off-by: Alexandru Vasile <[email protected]>
* error: Keep raw bytes for the ModuleError representation
Signed-off-by: Alexandru Vasile <[email protected]>
* error: Modify docs to not include links
Signed-off-by: Alexandru Vasile <[email protected]>
* subxt/tests: Propagate `RuntimeCall` to outer enums
Signed-off-by: Alexandru Vasile <[email protected]>
* subxt: Provide proper byte slice for decoding
Signed-off-by: Alexandru Vasile <[email protected]>
* Update artifacts
Signed-off-by: Alexandru Vasile <[email protected]>
* cli/tests: Adjust expected pallets message
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Test conversion from v14 to v15
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata: Fix typo
Signed-off-by: Alexandru Vasile <[email protected]>
* Update subxt/src/blocks/extrinsic_types.rs
Co-authored-by: James Wilson <[email protected]>
* metadata: Simplify type path for RuntimeError
Signed-off-by: Alexandru Vasile <[email protected]>
* metadata/validation: Use visited ids per outer enum
Signed-off-by: Alexandru Vasile <[email protected]>
* error: Remove RawModuleError
Signed-off-by: Alexandru Vasile <[email protected]>
* Fix new clippy error from updated rust version
Signed-off-by: Alexandru Vasile <[email protected]>
---------
Signed-off-by: Alexandru Vasile <[email protected]>
Co-authored-by: James Wilson <[email protected]>1 parent 4fb051f commit 78a106f
File tree
33 files changed
+3251
-9024
lines changed- .github/workflows
- artifacts
- cli/src/commands/explore
- codegen/src
- api
- utils
- metadata
- src
- from_into
- utils
- scripts
- subxt/src
- blocks
- client
- error
- events
- rpc
- testing
- integration-tests/src/full_client
- codegen
- frame
- metadata
- test-runtime
- ui-tests/src/utils
33 files changed
+3251
-9024
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
296 | 295 | | |
297 | 296 | | |
298 | | - | |
| 297 | + | |
299 | 298 | | |
300 | 299 | | |
301 | 300 | | |
| |||
382 | 381 | | |
383 | 382 | | |
384 | 383 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | 384 | | |
498 | 385 | | |
499 | 386 | | |
| |||
526 | 413 | | |
527 | 414 | | |
528 | 415 | | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
529 | 422 | | |
530 | 423 | | |
531 | 424 | | |
| |||
551 | 444 | | |
552 | 445 | | |
553 | 446 | | |
554 | | - | |
| 447 | + | |
| 448 | + | |
555 | 449 | | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
| 450 | + | |
| 451 | + | |
565 | 452 | | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
| 453 | + | |
| 454 | + | |
584 | 455 | | |
585 | 456 | | |
586 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments