Skip to content

Commit

Permalink
Merge pull request #168 from Zondax/update-9360
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Dec 20, 2022
2 parents ec0e6e4 + a30c282 commit 346f750
Show file tree
Hide file tree
Showing 27 changed files with 31,359 additions and 29,968 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 18.9340.x
# Polkadot 19.9360.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=18
APPVERSION_M=19
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9340
APPVERSION_N=9360
# This is the patch version of this release
APPVERSION_P=0
52 changes: 32 additions & 20 deletions app/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions app/src/substrate/substrate_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ parser_error_t _readMethod(
pd_Method_t* method)
{
switch (c->tx_obj->transactionVersion) {
case 18:
return _readMethod_V18(c, moduleIdx, callIdx, &method->V18);
case 19:
return _readMethod_V19(c, moduleIdx, callIdx, &method->V19);
case 15:
return _readMethod_V15(c, moduleIdx, callIdx, &method->V15);
default:
Expand All @@ -38,8 +38,8 @@ parser_error_t _readMethod(
uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_NumItems_V18(moduleIdx, callIdx);
case 19:
return _getMethod_NumItems_V19(moduleIdx, callIdx);
case 15:
return _getMethod_NumItems_V15(moduleIdx, callIdx);
default:
Expand All @@ -50,8 +50,8 @@ uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint
const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_ModuleName_V18(moduleIdx);
case 19:
return _getMethod_ModuleName_V19(moduleIdx);
case 15:
return _getMethod_ModuleName_V15(moduleIdx);
default:
Expand All @@ -62,8 +62,8 @@ const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx
const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_Name_V18(moduleIdx, callIdx);
case 19:
return _getMethod_Name_V19(moduleIdx, callIdx);
case 15:
return _getMethod_Name_V15(moduleIdx, callIdx);
default:
Expand All @@ -74,8 +74,8 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_ItemName_V18(moduleIdx, callIdx, itemIdx);
case 19:
return _getMethod_ItemName_V19(moduleIdx, callIdx, itemIdx);
case 15:
return _getMethod_ItemName_V15(moduleIdx, callIdx, itemIdx);
default:
Expand All @@ -88,8 +88,8 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
uint8_t pageIdx, uint8_t* pageCount)
{
switch (transactionVersion) {
case 18:
return _getMethod_ItemValue_V18(&m->V18, moduleIdx, callIdx, itemIdx, outValue,
case 19:
return _getMethod_ItemValue_V19(&m->V19, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 15:
return _getMethod_ItemValue_V15(&m->V15, moduleIdx, callIdx, itemIdx, outValue,
Expand All @@ -102,8 +102,8 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx, uint8_t itemIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_ItemIsExpert_V18(moduleIdx, callIdx, itemIdx);
case 19:
return _getMethod_ItemIsExpert_V19(moduleIdx, callIdx, itemIdx);
case 15:
return _getMethod_ItemIsExpert_V15(moduleIdx, callIdx, itemIdx);
default:
Expand All @@ -114,8 +114,8 @@ bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uin
bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx)
{
switch (transactionVersion) {
case 18:
return _getMethod_IsNestingSupported_V18(moduleIdx, callIdx);
case 19:
return _getMethod_IsNestingSupported_V19(moduleIdx, callIdx);
case 15:
return _getMethod_IsNestingSupported_V15(moduleIdx, callIdx);
default:
Expand Down
6 changes: 3 additions & 3 deletions app/src/substrate/substrate_dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern "C" {
#include "parser_common.h"
#include "stdbool.h"
#include "substrate_dispatch_V15.h"
#include "substrate_dispatch_V18.h"
#include "substrate_dispatch_V19.h"
#include <stddef.h>
#include <stdint.h>

Expand All @@ -33,8 +33,8 @@ extern "C" {
{ \
switch (txVersion) { \
\
case 18: \
return PD_CALL_##CALL##_V18; \
case 19: \
return PD_CALL_##CALL##_V19; \
\
case 15: \
return PD_CALL_##CALL##_V15; \
Expand Down
Loading

0 comments on commit 346f750

Please sign in to comment.