Skip to content

Commit

Permalink
Fees in normal mode (#111)
Browse files Browse the repository at this point in the history
* add fees in normal mode

* update deps

* update tests

* update snapshots

* fix warning
  • Loading branch information
chcmedeiros authored Jan 22, 2025
1 parent 9a8db48 commit 0c06527
Show file tree
Hide file tree
Showing 387 changed files with 51,915 additions and 45,694 deletions.
2 changes: 1 addition & 1 deletion app/Makefile.version
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ APPVERSION_M=2
# This is the `spec_version` field of `Runtime`
APPVERSION_N=0
# This is the patch version of this release
APPVERSION_P=3
APPVERSION_P=4
2 changes: 1 addition & 1 deletion app/src/parser_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ parser_error_t getNumItems(const parser_context_t *ctx, uint8_t *numItems) {
items += 3 * ctx->tx_obj->transaction.sections.maspBuilder.builder.sapling_builder.n_outputs; // print from outputs
items += 3 * ctx->tx_obj->transaction.sections.maspBuilder.builder.sapling_builder.n_spends; // print from spends

*numItems = (app_mode_expert() ? items + 4 : items);
*numItems = (app_mode_expert() ? items + 4 : items + 2);
} else {
*numItems = (app_mode_expert() ? TRANSFER_EXPERT_PARAMS : TRANSFER_NORMAL_PARAMS);
}
Expand Down
40 changes: 20 additions & 20 deletions app/src/parser_impl_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,64 +24,64 @@
extern "C" {
#endif

#define BOND_NORMAL_PARAMS 3
#define BOND_NORMAL_PARAMS 5
#define BOND_EXPERT_PARAMS 7

#define CUSTOM_NORMAL_PARAMS 1
#define CUSTOM_NORMAL_PARAMS 3
#define CUSTOM_EXPERT_PARAMS 7

#define INIT_ACCOUNT_NORMAL_PARAMS 3
#define INIT_ACCOUNT_NORMAL_PARAMS 5
#define INIT_ACCOUNT_EXPERT_PARAMS 7

#define INIT_PROPOSAL_NORMAL_PARAMS 7
#define INIT_PROPOSAL_NORMAL_PARAMS 9
#define INIT_PROPOSAL_EXPERT_PARAMS 11

#define VOTE_PROPOSAL_NORMAL_PARAMS 4
#define VOTE_PROPOSAL_NORMAL_PARAMS 6
#define VOTE_PROPOSAL_EXPERT_PARAMS 8

#define BECOME_VALIDATOR_NORMAL_PARAMS 9
#define BECOME_VALIDATOR_NORMAL_PARAMS 11
#define BECOME_VALIDATOR_EXPERT_PARAMS 13

#define REVEAL_PUBKEY_NORMAL_PARAMS 2
#define REVEAL_PUBKEY_NORMAL_PARAMS 4
#define REVEAL_PUBKEY_EXPERT_PARAMS 6

#define TRANSFER_NORMAL_PARAMS 1
#define TRANSFER_NORMAL_PARAMS 3
#define TRANSFER_EXPERT_PARAMS 5

#define UPDATE_VP_NORMAL_PARAMS 2
#define UPDATE_VP_NORMAL_PARAMS 4
#define UPDATE_VP_EXPERT_PARAMS 6

#define WITHDRAW_NORMAL_PARAMS 2
#define WITHDRAW_NORMAL_PARAMS 4
#define WITHDRAW_EXPERT_PARAMS 6

#define COMMISSION_CHANGE_NORMAL_PARAMS 3
#define COMMISSION_CHANGE_NORMAL_PARAMS 5
#define COMMISSION_CHANGE_EXPERT_PARAMS 7

#define UNJAIL_VALIDATOR_NORMAL_PARAMS 2
#define UNJAIL_VALIDATOR_NORMAL_PARAMS 4
#define UNJAIL_VALIDATOR_EXPERT_PARAMS 6

#define IBC_NORMAL_PARAMS 8
#define IBC_NORMAL_PARAMS 10
#define IBC_EXPERT_PARAMS 12

#define REDELEGATE_NORMAL_PARAMS 5
#define REDELEGATE_NORMAL_PARAMS 7
#define REDELEGATE_EXPERT_PARAMS 9

#define CLAIM_REWARDS_NORMAL_PARAMS 2
#define CLAIM_REWARDS_NORMAL_PARAMS 4
#define CLAIM_REWARDS_EXPERT_PARAMS 6

#define RESIGN_STEWARD_NORMAL_PARAMS 2
#define RESIGN_STEWARD_NORMAL_PARAMS 4
#define RESIGN_STEWARD_EXPERT_PARAMS 6

#define CHANGE_CONSENSUS_KEY_NORMAL_PARAMS 3
#define CHANGE_CONSENSUS_KEY_NORMAL_PARAMS 5
#define CHANGE_CONSENSUS_KEY_EXPERT_PARAMS 7

#define UPDATE_STEWARD_COMMISSION_NORMAL_PARAMS 2
#define UPDATE_STEWARD_COMMISSION_NORMAL_PARAMS 4
#define UPDATE_STEWARD_COMMISSION_EXPERT_PARAMS 6

#define CHANGE_VALIDATOR_METADATA_NORMAL_PARAMS 2
#define CHANGE_VALIDATOR_METADATA_NORMAL_PARAMS 4
#define CHANGE_VALIDATOR_METADATA_EXPERT_PARAMS 6

#define BRIDGE_POOL_TRANSFER_NORMAL_PARAMS 9
#define BRIDGE_POOL_TRANSFER_NORMAL_PARAMS 11
#define BRIDGE_POOL_TRANSFER_EXPERT_PARAMS 13

#define CTX_CHECK_AVAIL(CTX, SIZE) \
Expand Down
Loading

0 comments on commit 0c06527

Please sign in to comment.