Skip to content

Commit

Permalink
Merge pull request #182 from Zondax/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Mar 21, 2023
2 parents 9e6e634 + 60f079b commit 04a9c61
Show file tree
Hide file tree
Showing 14 changed files with 39,593 additions and 24,105 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Please:
- **Do not use in production**
- **Do not use a Ledger device with funds for development purposes.**
- **Have a separate and marked device that is used ONLY for development and testing**
# Polkadot 21.9390.x
# Polkadot 21.9391.x

## System

Expand Down
4 changes: 2 additions & 2 deletions app/Makefile.version
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is the `transaction_version` field of `Runtime`
APPVERSION_M=21
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9390
APPVERSION_N=9391
# This is the patch version of this release
APPVERSION_P=1
APPVERSION_P=0
16 changes: 8 additions & 8 deletions app/src/substrate/substrate_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -1700,10 +1700,10 @@ parser_error_t _readBoxVersionedMultiAssets(parser_context_t* c, pd_BoxVersioned
CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // V2
case 1: // V2
CHECK_ERROR(_readVecMultiAssetV2(c, &v->vecMultiassetV2))
break;
case 1: // V3
case 3: // V3
CHECK_ERROR(_readVecMultiAssetV3(c, &v->vecMultiassetV3))
break;
default:
Expand All @@ -1718,10 +1718,10 @@ parser_error_t _readBoxVersionedMultiLocation(parser_context_t* c, pd_BoxVersion
CHECK_INPUT()
CHECK_ERROR(_readUInt8(c, &v->value))
switch (v->value) {
case 0: // V2
case 1: // V2
CHECK_ERROR(_readMultiLocationV2(c, &v->multilocationV2))
break;
case 1: // V3
case 3: // V3
CHECK_ERROR(_readMultiLocationV3(c, &v->multilocationV3))
break;
default:
Expand Down Expand Up @@ -6773,10 +6773,10 @@ parser_error_t _toStringBoxVersionedMultiAssets(
{
CLEAN_AND_CHECK()
switch (v->value) {
case 0: // V2
case 1: // V2
CHECK_ERROR(_toStringVecMultiAssetV2(&v->vecMultiassetV2, outValue, outValueLen, pageIdx, pageCount))
break;
case 1: // V3
case 3: // V3
CHECK_ERROR(_toStringVecMultiAssetV3(&v->vecMultiassetV3, outValue, outValueLen, pageIdx, pageCount))
break;
default:
Expand All @@ -6795,10 +6795,10 @@ parser_error_t _toStringBoxVersionedMultiLocation(
{
CLEAN_AND_CHECK()
switch (v->value) {
case 0: // V2
case 1: // V2
CHECK_ERROR(_toStringMultiLocationV2(&v->multilocationV2, outValue, outValueLen, pageIdx, pageCount))
break;
case 1: // V3
case 3: // V3
CHECK_ERROR(_toStringMultiLocationV3(&v->multilocationV3, outValue, outValueLen, pageIdx, pageCount))
break;
default:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Polkadot 21.9390.x
# Polkadot 21.9391.x

## System

Expand Down
2 changes: 1 addition & 1 deletion docs/supported_latest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Polkadot 21.9390.x
# Polkadot 21.9391.x

## System

Expand Down
63,646 changes: 39,567 additions & 24,079 deletions tests/testcases_current.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions tests_zemu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@
"test": "yarn clean && jest"
},
"dependencies": {
"@zondax/ledger-substrate": "^0.40.5",
"@zondax/zemu": "^0.36.0"
"@zondax/ledger-substrate": "^0.40.6",
"@zondax/zemu": "^0.36.2"
},
"devDependencies": {
"@types/jest": "^29.2.1",
"@types/jest": "^29.5.0",
"@types/ledgerhq__hw-transport": "^4.21.4",
"@typescript-eslint/eslint-plugin": "^5.42.0",
"@typescript-eslint/parser": "^5.42.0",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"@typescript-eslint/parser": "^5.56.0",
"blakejs": "^1.1.1",
"crypto-js": "^4.1.1",
"ed25519-supercop": "^2.0.1",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^29.5.0",
"jssha": "^3.2.0",
"prettier": "^2.5.1",
"prettier": "^2.8.6",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "^4.5.3"
Expand Down
Binary file modified tests_zemu/snapshots/s-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/s-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/sp-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests_zemu/snapshots/x-mainmenu/00010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions tests_zemu/tests/zemu_blobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
******************************************************************************* */

export const txBalances_transfer =
'050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05cae2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05caf2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txStaking_nominate =
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05cae2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'070510003132333435363738393031323334353637383930313233343536373839303132003132333435363738393031323334353637383930313233343536373839303133003132333435363738393031323334353637383930313233343536373839303134003132333435363738393031323334353637383930313233343536373839303135d5038d2433158139ae28a3dfaac5fe1560a5e9e05caf2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txSession_setKeys =
'090031323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05cae2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'090031323334353637383930313233343536373839303132333435363738393031323132333435363738393031323334353637383930313233343536373839303132313233343536373839303132333435363738393031323334353637383930313231323334353637383930313233343536373839303132333435363738393031320000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000d5038d2433158139ae28a3dfaac5fe1560a5e9e05caf2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txUtility_batch =
'1a000800000834340000083838d5038d2433158139ae28a3dfaac5fe1560a5e9e05cae2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1a000800000834340000083838d5038d2433158139ae28a3dfaac5fe1560a5e9e05caf2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

export const txProxy_proxy =
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05cae2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'
'1d000031323334353637383930313233343536373839303132333435363738393031320100050000313233343536373839303132333435363738393031323334353637383930313233158139ae28a3dfaac5fe1560a5e9e05cd5038d2433158139ae28a3dfaac5fe1560a5e9e05caf2400001500000091b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c391b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3'

0 comments on commit 04a9c61

Please sign in to comment.