Skip to content

Commit

Permalink
Merge pull request #36 from Zondax/update-11
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Jul 14, 2022
2 parents ab705bd + 637614b commit ff1b353
Show file tree
Hide file tree
Showing 30 changed files with 13,625 additions and 13,851 deletions.
12 changes: 3 additions & 9 deletions 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**
# Nodle 1.10.x
# Nodle 4.11.x

## System

Expand Down Expand Up @@ -102,8 +102,7 @@ Please:
| :---------- |:------------:|:--------:|:--------:|:--------|
|Claim | | :heavy_check_mark: | | |
|Add vesting schedule | | :heavy_check_mark: | | `LookupasStaticLookupSource` dest <br/>`VestingScheduleOf` schedule <br/> |
|Cancel all vesting schedules | | :heavy_check_mark: | | `LookupasStaticLookupSource` who <br/>`LookupasStaticLookupSource` funds_collector <br/>`bool` limit_to_free_balance <br/> |
|Overwrite vesting schedules | | :heavy_check_mark: | | `LookupasStaticLookupSource` who <br/>`VecVestingScheduleOf` new_schedules <br/> |
|Cancel all vesting schedules | | :heavy_check_mark: | | `LookupasStaticLookupSource` who <br/>`LookupasStaticLookupSource` funds_collector <br/> |

## Mandate

Expand Down Expand Up @@ -238,16 +237,11 @@ Please:
|Request preimage | | :heavy_check_mark: | | `Hash` hash <br/> |
|Unrequest preimage | | :heavy_check_mark: | | `Hash` hash <br/> |

## EmergencyShutdown

| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
|Toggle | | :heavy_check_mark: | | |

## Allocations

| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
|Batch | | :heavy_check_mark: | | `VecTupleAccountIdBalanceOf` batch <br/> |
|Allocate | | :heavy_check_mark: | | `AccountId` to <br/>`Balance` amount <br/>`Vecu8` proof <br/> |

## AllocationsOracles
Expand Down
6 changes: 3 additions & 3 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=1
APPVERSION_M=4
# This is the `spec_version` field of `Runtime`
APPVERSION_N=10
APPVERSION_N=11
# This is the patch version of this release
APPVERSION_P=1
APPVERSION_P=0
8 changes: 4 additions & 4 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 1:
return _readMethod_V1(c, moduleIdx, callIdx, &method->V1);
case 4:
return _readMethod_V4(c, moduleIdx, callIdx, &method->V4);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -36,8 +36,8 @@ parser_error_t _readMethod(
uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint8_t callIdx)
{
switch (transactionVersion) {
case 1:
return _getMethod_NumItems_V1(moduleIdx, callIdx);
case 4:
return _getMethod_NumItems_V4(moduleIdx, callIdx);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -46,8 +46,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 1:
return _getMethod_ModuleName_V1(moduleIdx);
case 4:
return _getMethod_ModuleName_V4(moduleIdx);
default:
return NULL;
}
Expand All @@ -56,8 +56,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 1:
return _getMethod_Name_V1(moduleIdx, callIdx);
case 4:
return _getMethod_Name_V4(moduleIdx, callIdx);
default:
return 0;
}
Expand All @@ -66,8 +66,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 1:
return _getMethod_ItemName_V1(moduleIdx, callIdx, itemIdx);
case 4:
return _getMethod_ItemName_V4(moduleIdx, callIdx, itemIdx);
default:
return NULL;
}
Expand All @@ -78,8 +78,8 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
uint8_t pageIdx, uint8_t* pageCount)
{
switch (transactionVersion) {
case 1:
return _getMethod_ItemValue_V1(&m->V1, moduleIdx, callIdx, itemIdx, outValue,
case 4:
return _getMethod_ItemValue_V4(&m->V4, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
default:
return parser_tx_version_not_supported;
Expand All @@ -89,8 +89,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 1:
return _getMethod_ItemIsExpert_V1(moduleIdx, callIdx, itemIdx);
case 4:
return _getMethod_ItemIsExpert_V4(moduleIdx, callIdx, itemIdx);
default:
return false;
}
Expand All @@ -99,8 +99,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 1:
return _getMethod_IsNestingSupported_V1(moduleIdx, callIdx);
case 4:
return _getMethod_IsNestingSupported_V4(moduleIdx, callIdx);
default:
return false;
}
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 @@ -21,7 +21,7 @@ extern "C" {

#include "parser_common.h"
#include "stdbool.h"
#include "substrate_dispatch_V1.h"
#include "substrate_dispatch_V4.h"
#include <stddef.h>
#include <stdint.h>

Expand All @@ -32,8 +32,8 @@ extern "C" {
{ \
switch (txVersion) { \
\
case 1: \
return PD_CALL_##CALL##_V1; \
case 4: \
return PD_CALL_##CALL##_V4; \
\
default: \
return 0; \
Expand Down
Loading

0 comments on commit ff1b353

Please sign in to comment.