Skip to content

Commit

Permalink
SS58 Prefix 12
Browse files Browse the repository at this point in the history
  • Loading branch information
0xPxt committed Oct 17, 2024
1 parent 40bdc40 commit 7934640
Show file tree
Hide file tree
Showing 128 changed files with 22,575 additions and 22,412 deletions.
9 changes: 9 additions & 0 deletions app/src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ parser_error_t parser_getItem(const parser_context_t *ctx,
// CONTINUE WITH FIXED ARGUMENTS
displayIdx -= methodArgCount;
if (displayIdx == FIELD_NETWORK) {
#if !defined(TARGET_NANOS) && !defined(TARGET_NANOX) && !defined(TARGET_NANOS2) && !defined(TARGET_STAX) && \
!defined(TARGET_FLEX)
if (parser_show_expert_fields()) {
snprintf(outKey, outKeyLen, "Chain");
snprintf(outVal, outValLen, COIN_NAME);
return parser_ok;
}
#else
if (_getAddressType() == PK_ADDRESS_TYPE) {
if (parser_show_expert_fields()) {
snprintf(outKey, outKeyLen, "Chain");
Expand All @@ -179,6 +187,7 @@ parser_error_t parser_getItem(const parser_context_t *ctx,
outVal, outValLen,
pageIdx, pageCount);
}
#endif
}

if (!parser_show_expert_fields()) {
Expand Down
4 changes: 2 additions & 2 deletions app/src/substrate/substrate_coin.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
extern "C" {
#endif

#define COIN_ADDR_TYPE 42
#define COIN_ADDR_TYPE 12
#define CLA 0x91

#define INS_SIGN_RAW 0x03
Expand Down Expand Up @@ -63,7 +63,7 @@ typedef enum {

#define COIN_AMOUNT_DECIMAL_PLACES 6

#define COIN_GENESIS_HASH "885d727362e25873fb2c5fcda890a91018f52425b41ba30e0c1aaf1ab411dd0a"
#define COIN_GENESIS_HASH "6fbd74e5e1d0a61d52ccfe9d4adaed16dd3a7caa37c6bc4d0c2fa12e8b2f4063"
#define COIN_NAME "Polymesh"
#define COIN_TICKER "POLYX "

Expand Down
44,970 changes: 22,562 additions & 22,408 deletions tests/testcases_current.json

Large diffs are not rendered by default.

Binary file modified tests_zemu/snapshots/fl-balances_transfer/00002.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/fl-balances_transfer_expert/00000.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/fl-balances_transfer_expert/00001.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/fl-balances_transfer_expert/00002.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/fl-balances_transfer_expert/00003.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/fl-balances_transfer_expert/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/fl-balances_transfer_expert/00005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/fl-identity_addClaim/00002.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/fl-session_setkeys/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/fl-show_address/00001.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/fl-show_address_reject/00001.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/fl-staking_nominate/00003.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/fl-txUtility_batch/00002.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-balances_transfer/00005.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-balances_transfer/00006.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-balances_transfer_expert/00005.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-balances_transfer_expert/00006.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-balances_transfer_expert/00007.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-balances_transfer_expert/00008.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-balances_transfer_expert/00009.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-balances_transfer_expert/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/s-balances_transfer_expert/00011.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-balances_transfer_expert/00012.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-balances_transfer_expert/00013.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-balances_transfer_expert/00014.png
Binary file modified tests_zemu/snapshots/s-identity_addClaim/00006.png
Binary file modified tests_zemu/snapshots/s-identity_addClaim/00007.png
Binary file modified tests_zemu/snapshots/s-session_setkeys/00010.png
Binary file modified tests_zemu/snapshots/s-session_setkeys/00011.png
Binary file modified tests_zemu/snapshots/s-show_address/00000.png
Binary file modified tests_zemu/snapshots/s-show_address/00001.png
Binary file modified tests_zemu/snapshots/s-show_address_reject/00000.png
Binary file modified tests_zemu/snapshots/s-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/s-show_address_reject_sr25519/00000.png
Binary file modified tests_zemu/snapshots/s-show_address_reject_sr25519/00001.png
Binary file modified tests_zemu/snapshots/s-show_address_sr25519/00000.png
Binary file modified tests_zemu/snapshots/s-show_address_sr25519/00001.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00005.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00006.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00007.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00008.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00009.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00010.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00011.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00012.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00013.png
Binary file modified tests_zemu/snapshots/s-sign_basic_expert_sr25519/00014.png
Binary file modified tests_zemu/snapshots/s-sign_basic_normal_sr25519/00005.png
Binary file modified tests_zemu/snapshots/s-sign_basic_normal_sr25519/00006.png
Binary file modified tests_zemu/snapshots/s-staking_nominate/00009.png
Binary file modified tests_zemu/snapshots/s-staking_nominate/00010.png
Binary file modified tests_zemu/snapshots/s-txUtility_batch/00005.png
Binary file modified tests_zemu/snapshots/s-txUtility_batch/00006.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00005.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer/00006.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00005.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00006.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00007.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00008.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00009.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00010.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00011.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00012.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00013.png
Binary file modified tests_zemu/snapshots/sp-balances_transfer_expert/00014.png
Binary file modified tests_zemu/snapshots/sp-identity_addClaim/00007.png
Binary file modified tests_zemu/snapshots/sp-identity_addClaim/00008.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00008.png
Binary file modified tests_zemu/snapshots/sp-session_setkeys/00009.png
Binary file modified tests_zemu/snapshots/sp-show_address/00001.png
Binary file modified tests_zemu/snapshots/sp-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00006.png
Binary file modified tests_zemu/snapshots/sp-staking_nominate/00007.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00006.png
Binary file modified tests_zemu/snapshots/sp-txUtility_batch/00007.png
Binary file modified tests_zemu/snapshots/st-balances_transfer/00002.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00001.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00002.png
Binary file modified tests_zemu/snapshots/st-balances_transfer_expert/00003.png
Binary file modified tests_zemu/snapshots/st-identity_addClaim/00002.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00000.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00001.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00002.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00003.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00004.png
Binary file modified tests_zemu/snapshots/st-session_setkeys/00005.png
Binary file added tests_zemu/snapshots/st-session_setkeys/00006.png
Binary file modified tests_zemu/snapshots/st-show_address/00001.png
Binary file modified tests_zemu/snapshots/st-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00000.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00001.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00002.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00003.png
Binary file modified tests_zemu/snapshots/st-staking_nominate/00004.png
Binary file modified tests_zemu/snapshots/st-txUtility_batch/00002.png
Binary file modified tests_zemu/snapshots/x-balances_transfer/00005.png
Binary file modified tests_zemu/snapshots/x-balances_transfer/00006.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00005.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00006.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00007.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00008.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00009.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00010.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00011.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00012.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00013.png
Binary file modified tests_zemu/snapshots/x-balances_transfer_expert/00014.png
Binary file modified tests_zemu/snapshots/x-identity_addClaim/00007.png
Binary file modified tests_zemu/snapshots/x-identity_addClaim/00008.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00008.png
Binary file modified tests_zemu/snapshots/x-session_setkeys/00009.png
Binary file modified tests_zemu/snapshots/x-show_address/00001.png
Binary file modified tests_zemu/snapshots/x-show_address_reject/00001.png
Binary file modified tests_zemu/snapshots/x-staking_nominate/00006.png
Binary file modified tests_zemu/snapshots/x-staking_nominate/00007.png
Binary file modified tests_zemu/snapshots/x-txUtility_batch/00006.png
Binary file modified tests_zemu/snapshots/x-txUtility_batch/00007.png
2 changes: 1 addition & 1 deletion tests_zemu/tests/sr25519.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const defaultOptions = {
X11: false,
}

const expected_address = '5Gxs2x4jHn2i3kn4FofDiaMjCxDXXxVZt9pZnhUZqjqD4ze9'
const expected_address = '2HM5HBpdm3nuMze95qGWPYNypPvhtTbxDwCdLCBXx5zadMSS'
const expected_pk = 'd8b89698f0deb2b2023ec1dd1a2ca06f01c4db6114648adb02e18dfd12dae77c'

jest.setTimeout(180000)
Expand Down
2 changes: 1 addition & 1 deletion tests_zemu/tests/standard.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultOptions = {
X11: false,
}

const expected_address = '5GXTGpFBgKcNZzhj7C6LqM6S9ME9B4uceNz2GE2AnNbkvkaa'
const expected_address = '2GufX4169bNZtEZowDhdWK7gknwKXa1zzAN5oij8tim8V2mr'
const expected_pk = 'c55777790670bfd6bf012d79fd65f29afe233694d5af0a5e74783f13849fe29a'

jest.setTimeout(180000)
Expand Down

0 comments on commit 7934640

Please sign in to comment.