Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #149 from Zondax/polkadot_9.19
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosala authored Apr 22, 2022
2 parents 6d6d660 + 7846ba3 commit 10fa64c
Show file tree
Hide file tree
Showing 37 changed files with 26,439 additions and 33,418 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +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**

# Kusama 11.9180.x
# Kusama 11.9190.x

## System

Expand Down Expand Up @@ -173,8 +172,8 @@ Please:
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
|Set members | | | | `VecAccountId` new_members <br/>`OptionAccountId` prime <br/>`MemberCount` old_count <br/> |
|Execute | | | | `BoxTasConfigIProposal` proposal <br/>`Compactu32` length_bound <br/> |
|Propose | | | | `Compactu32` threshold <br/>`BoxTasConfigIProposal` proposal <br/>`Compactu32` length_bound <br/> |
|Execute | | | | `Proposal` proposal <br/>`Compactu32` length_bound <br/> |
|Propose | | | | `Compactu32` threshold <br/>`Proposal` proposal <br/>`Compactu32` length_bound <br/> |
|Vote | | :heavy_check_mark: | | `Hash` proposal <br/>`Compactu32` index <br/>`bool` approve <br/> |
|Close | | :heavy_check_mark: | | `Hash` proposal_hash <br/>`Compactu32` index <br/>`Compactu64` proposal_weight_bound <br/>`Compactu32` length_bound <br/> |
|Disapprove proposal | | :heavy_check_mark: | | `Hash` proposal_hash <br/> |
Expand All @@ -184,8 +183,8 @@ Please:
| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
|Set members | | | | `VecAccountId` new_members <br/>`OptionAccountId` prime <br/>`MemberCount` old_count <br/> |
|Execute | | | | `BoxTasConfigIProposal` proposal <br/>`Compactu32` length_bound <br/> |
|Propose | | | | `Compactu32` threshold <br/>`BoxTasConfigIProposal` proposal <br/>`Compactu32` length_bound <br/> |
|Execute | | | | `Proposal` proposal <br/>`Compactu32` length_bound <br/> |
|Propose | | | | `Compactu32` threshold <br/>`Proposal` proposal <br/>`Compactu32` length_bound <br/> |
|Vote | | | | `Hash` proposal <br/>`Compactu32` index <br/>`bool` approve <br/> |
|Close | | | | `Hash` proposal_hash <br/>`Compactu32` index <br/>`Compactu64` proposal_weight_bound <br/>`Compactu32` length_bound <br/> |
|Disapprove proposal | | :heavy_check_mark: | | `Hash` proposal_hash <br/> |
Expand Down Expand Up @@ -359,6 +358,18 @@ Please:
|Close bounty | | :heavy_check_mark: | | `Compactu32` bounty_id <br/> |
|Extend bounty expiry | | :heavy_check_mark: | | `Compactu32` bounty_id <br/>`Bytes` remark <br/> |

## ChildBounties

| Name | Light | XL | Nesting | Arguments |
| :---------- |:------------:|:--------:|:--------:|:--------|
|Add child bounty | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`CompactBalance` amount <br/>`Vecu8` description <br/> |
|Propose curator | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/>`LookupasStaticLookupSource` curator <br/>`CompactBalance` fee <br/> |
|Accept curator | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/> |
|Unassign curator | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/> |
|Award child bounty | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/>`LookupasStaticLookupSource` beneficiary <br/> |
|Claim child bounty | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/> |
|Close child bounty | | :heavy_check_mark: | | `Compactu32` parent_bounty_id <br/>`Compactu32` child_bounty_id <br/> |

## Tips

| Name | Light | XL | Nesting | Arguments |
Expand Down
8 changes: 4 additions & 4 deletions app/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#*******************************************************************************
# Ledger App
# (c) 2018 - 2022 Zondax GmbH
# (c) 2017 Ledger
# Ledger App
# (c) 2019 - 2022 Zondax GmbH
# (c) 2017 Ledger
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -76,7 +76,7 @@ ifneq ($(TARGET_NAME),TARGET_NANOS)
DEFINES += SUBSTRATE_PARSER_FULL
endif
APPNAME = "Kusama"
APPPATH = "44'/434'" --path "44'/354'"
APPPATH = "44'/434'" --path "44'/354'"

else ifeq ($(COIN),KSM_XL)
# XL app configuration
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=11
# This is the `spec_version` field of `Runtime`
APPVERSION_N=9180
APPVERSION_N=9190
# This is the patch version of this release
APPVERSION_P=4
APPVERSION_P=0
17 changes: 0 additions & 17 deletions app/src/substrate/substrate_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ parser_error_t _readMethod(
switch (c->tx_obj->transactionVersion) {
case 11:
return _readMethod_V11(c, moduleIdx, callIdx, &method->V11);
case 10:
return _readMethod_V10(c, moduleIdx, callIdx, &method->V10);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -40,8 +38,6 @@ uint8_t _getMethod_NumItems(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 11:
return _getMethod_NumItems_V11(moduleIdx, callIdx);
case 10:
return _getMethod_NumItems_V10(moduleIdx, callIdx);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -52,8 +48,6 @@ const char* _getMethod_ModuleName(uint32_t transactionVersion, uint8_t moduleIdx
switch (transactionVersion) {
case 11:
return _getMethod_ModuleName_V11(moduleIdx);
case 10:
return _getMethod_ModuleName_V10(moduleIdx);
default:
return NULL;
}
Expand All @@ -64,8 +58,6 @@ const char* _getMethod_Name(uint32_t transactionVersion, uint8_t moduleIdx, uint
switch (transactionVersion) {
case 11:
return _getMethod_Name_V11(moduleIdx, callIdx);
case 10:
return _getMethod_Name_V10(moduleIdx, callIdx);
default:
return 0;
}
Expand All @@ -76,8 +68,6 @@ const char* _getMethod_ItemName(uint32_t transactionVersion, uint8_t moduleIdx,
switch (transactionVersion) {
case 11:
return _getMethod_ItemName_V11(moduleIdx, callIdx, itemIdx);
case 10:
return _getMethod_ItemName_V10(moduleIdx, callIdx, itemIdx);
default:
return NULL;
}
Expand All @@ -91,9 +81,6 @@ parser_error_t _getMethod_ItemValue(uint32_t transactionVersion, pd_Method_t* m,
case 11:
return _getMethod_ItemValue_V11(&m->V11, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
case 10:
return _getMethod_ItemValue_V10(&m->V10, moduleIdx, callIdx, itemIdx, outValue,
outValueLen, pageIdx, pageCount);
default:
return parser_tx_version_not_supported;
}
Expand All @@ -104,8 +91,6 @@ bool _getMethod_ItemIsExpert(uint32_t transactionVersion, uint8_t moduleIdx, uin
switch (transactionVersion) {
case 11:
return _getMethod_ItemIsExpert_V11(moduleIdx, callIdx, itemIdx);
case 10:
return _getMethod_ItemIsExpert_V10(moduleIdx, callIdx, itemIdx);
default:
return false;
}
Expand All @@ -116,8 +101,6 @@ bool _getMethod_IsNestingSupported(uint32_t transactionVersion, uint8_t moduleId
switch (transactionVersion) {
case 11:
return _getMethod_IsNestingSupported_V11(moduleIdx, callIdx);
case 10:
return _getMethod_IsNestingSupported_V10(moduleIdx, callIdx);
default:
return false;
}
Expand Down
4 changes: 0 additions & 4 deletions app/src/substrate/substrate_dispatch.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extern "C" {

#include "parser_common.h"
#include "stdbool.h"
#include "substrate_dispatch_V10.h"
#include "substrate_dispatch_V11.h"
#include <stddef.h>
#include <stdint.h>
Expand All @@ -36,9 +35,6 @@ extern "C" {
case 11: \
return PD_CALL_##CALL##_V11; \
\
case 10: \
return PD_CALL_##CALL##_V10; \
\
default: \
return 0; \
} \
Expand Down
Loading

0 comments on commit 10fa64c

Please sign in to comment.