Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juditortiz10 committed May 10, 2024
1 parent 8483413 commit 24d08bb
Show file tree
Hide file tree
Showing 22 changed files with 121,248 additions and 104,441 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ zemu_install: tests_tools_build
test_all:
make zemu_install
SUBSTRATE_PARSER_FULL=1 make
make clean_build
SUBSTRATE_PARSER_FULL=1 SUPPORT_SR25519=1 make buildS
make zemu_test
365 changes: 196 additions & 169 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 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=25
# This is the `spec_version` field of `Runtime`
APPVERSION_N=10100
APPVERSION_N=1002000
# This is the patch version of this release
APPVERSION_P=0
Empty file.
892 changes: 649 additions & 243 deletions app/src/substrate/substrate_dispatch_V25.c

Large diffs are not rendered by default.

516 changes: 66 additions & 450 deletions app/src/substrate/substrate_functions.h

Large diffs are not rendered by default.

159 changes: 120 additions & 39 deletions app/src/substrate/substrate_methods_V25.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ extern "C" {
#define PD_CALL_CONFIGURATION_V25 51
#define PD_CALL_INITIALIZER_V25 57
#define PD_CALL_PARASDISPUTES_V25 62
#define PD_CALL_ONDEMANDASSIGNMENTPROVIDER_V25 64
#define PD_CALL_AUCTIONS_V25 72
#define PD_CALL_CROWDLOAN_V25 73
#define PD_CALL_XCMPALLET_V25 99
#define PD_CALL_IDENTITYMIGRATOR_V25 248

#define PD_CALL_UTILITY_BATCH_V25 0
typedef struct {
Expand Down Expand Up @@ -142,38 +143,23 @@ typedef struct {

#ifdef SUBSTRATE_PARSER_FULL
#ifndef TARGET_NANOS
#define PD_CALL_XCMPALLET_TELEPORT_ASSETS_V25 1
typedef struct {
pd_BoxVersionedMultiLocation_t dest;
pd_BoxVersionedMultiLocation_t beneficiary;
pd_BoxVersionedMultiAssets_t assets;
pd_u32_t fee_asset_item;
} pd_xcmpallet_teleport_assets_V25_t;
#define PD_CALL_XCMPALLET_RESERVE_TRANSFER_ASSETS_V25 2
typedef struct {
pd_BoxVersionedMultiLocation_t dest;
pd_BoxVersionedMultiLocation_t beneficiary;
pd_BoxVersionedMultiAssets_t assets;
pd_u32_t fee_asset_item;
} pd_xcmpallet_reserve_transfer_assets_V25_t;
#define PD_CALL_XCMPALLET_LIMITED_RESERVE_TRANSFER_ASSETS_V25 8
typedef struct {
pd_BoxVersionedMultiLocation_t dest;
pd_BoxVersionedMultiLocation_t beneficiary;
pd_BoxVersionedMultiAssets_t assets;
pd_u32_t fee_asset_item;
pd_WeightLimit_t weight_limit;
} pd_xcmpallet_limited_reserve_transfer_assets_V25_t;
#define PD_CALL_XCMPALLET_LIMITED_TELEPORT_ASSETS_V25 9
typedef struct {
pd_BoxVersionedMultiLocation_t dest;
pd_BoxVersionedMultiLocation_t beneficiary;
pd_BoxVersionedMultiAssets_t assets;
pd_u32_t fee_asset_item;
pd_WeightLimit_t weight_limit;
} pd_xcmpallet_limited_teleport_assets_V25_t;
#endif

#define PD_CALL_SYSTEM_AUTHORIZE_UPGRADE_V25 9
typedef struct {
pd_Hash_t code_hash;
} pd_system_authorize_upgrade_V25_t;

#define PD_CALL_SYSTEM_AUTHORIZE_UPGRADE_WITHOUT_CHECKS_V25 10
typedef struct {
pd_Hash_t code_hash;
} pd_system_authorize_upgrade_without_checks_V25_t;

#define PD_CALL_SYSTEM_APPLY_AUTHORIZED_UPGRADE_V25 11
typedef struct {
pd_Vecu8_t code;
} pd_system_apply_authorized_upgrade_V25_t;

#define PD_CALL_TIMESTAMP_SET_V25 0
typedef struct {
pd_Compactu64_t now;
Expand Down Expand Up @@ -224,6 +210,12 @@ typedef struct {
pd_CompactBalance_t new_free;
} pd_balances_force_set_balance_V25_t;

#define PD_CALL_BALANCES_FORCE_ADJUST_TOTAL_ISSUANCE_V25 9
typedef struct {
pd_AdjustmentDirection_t direction;
pd_CompactBalance_t delta;
} pd_balances_force_adjust_total_issuance_V25_t;

#define PD_CALL_STAKING_SET_VALIDATOR_COUNT_V25 9
typedef struct {
pd_Compactu32_t new_;
Expand Down Expand Up @@ -291,7 +283,7 @@ typedef struct {

#define PD_CALL_STAKING_CHILL_OTHER_V25 23
typedef struct {
pd_AccountId_t controller;
pd_AccountId_t stash;
} pd_staking_chill_other_V25_t;

#define PD_CALL_STAKING_FORCE_APPLY_MIN_COMMISSION_V25 24
Expand All @@ -304,6 +296,18 @@ typedef struct {
pd_Perbill_t new_;
} pd_staking_set_min_commission_V25_t;

#define PD_CALL_STAKING_PAYOUT_STAKERS_BY_PAGE_V25 26
typedef struct {
pd_AccountId_t validator_stash;
pd_EraIndex_t era;
pd_Page_t page;
} pd_staking_payout_stakers_by_page_V25_t;

#define PD_CALL_STAKING_UPDATE_PAYEE_V25 27
typedef struct {
pd_AccountId_t controller;
} pd_staking_update_payee_V25_t;

#define PD_CALL_TREASURY_PROPOSE_SPEND_V25 0
typedef struct {
pd_CompactBalance_t amount;
Expand Down Expand Up @@ -427,6 +431,12 @@ typedef struct {
pd_u32_t max;
} pd_fellowshipcollective_cleanup_poll_V25_t;

#define PD_CALL_FELLOWSHIPCOLLECTIVE_EXCHANGE_MEMBER_V25 6
typedef struct {
pd_AccountIdLookupOfT_t who;
pd_AccountIdLookupOfT_t new_who;
} pd_fellowshipcollective_exchange_member_V25_t;

#define PD_CALL_FELLOWSHIPREFERENDA_SUBMIT_V25 0
typedef struct {
pd_BoxPalletsOrigin_t proposal_origin;
Expand Down Expand Up @@ -610,6 +620,18 @@ typedef struct {
typedef struct {
} pd_identity_quit_sub_V25_t;

#define PD_CALL_IDENTITY_ADD_USERNAME_AUTHORITY_V25 15
typedef struct {
pd_AccountIdLookupOfT_t authority;
pd_Vecu8_t suffix;
pd_u32_t allocation;
} pd_identity_add_username_authority_V25_t;

#define PD_CALL_IDENTITY_REMOVE_USERNAME_AUTHORITY_V25 16
typedef struct {
pd_AccountIdLookupOfT_t authority;
} pd_identity_remove_username_authority_V25_t;

#define PD_CALL_SOCIETY_BID_V25 0
typedef struct {
pd_BalanceOf_t amount;
Expand Down Expand Up @@ -781,6 +803,12 @@ typedef struct {
pd_u32_t schedule2_index;
} pd_vesting_merge_schedules_V25_t;

#define PD_CALL_VESTING_FORCE_REMOVE_VESTING_SCHEDULE_V25 5
typedef struct {
pd_LookupasStaticLookupSource_t target;
pd_u32_t schedule_index;
} pd_vesting_force_remove_vesting_schedule_V25_t;

#define PD_CALL_PROXY_REMOVE_PROXIES_V25 3
typedef struct {
} pd_proxy_remove_proxies_V25_t;
Expand Down Expand Up @@ -993,6 +1021,12 @@ typedef struct {
pd_Compactu128_t new_free;
} pd_niscounterpartbalances_force_set_balance_V25_t;

#define PD_CALL_NISCOUNTERPARTBALANCES_FORCE_ADJUST_TOTAL_ISSUANCE_V25 9
typedef struct {
pd_AdjustmentDirection_t direction;
pd_Compactu128_t delta;
} pd_niscounterpartbalances_force_adjust_total_issuance_V25_t;

#define PD_CALL_VOTERLIST_REBAG_V25 0
typedef struct {
pd_AccountIdLookupOfT_t dislocated;
Expand Down Expand Up @@ -1045,6 +1079,12 @@ typedef struct {
pd_PoolId_t pool_id;
} pd_nominationpools_adjust_pool_deposit_V25_t;

#define PD_CALL_NOMINATIONPOOLS_SET_COMMISSION_CLAIM_PERMISSION_V25 22
typedef struct {
pd_PoolId_t pool_id;
pd_OptionCommissionClaimPermissionAccountId_t permission;
} pd_nominationpools_set_commission_claim_permission_V25_t;

#define PD_CALL_FASTUNSTAKE_CONTROL_V25 2
typedef struct {
pd_EraIndex_t eras_to_check;
Expand Down Expand Up @@ -1080,10 +1120,10 @@ typedef struct {
pd_u32_t new_;
} pd_configuration_set_max_head_data_size_V25_t;

#define PD_CALL_CONFIGURATION_SET_ON_DEMAND_CORES_V25 6
#define PD_CALL_CONFIGURATION_SET_CORETIME_CORES_V25 6
typedef struct {
pd_u32_t new_;
} pd_configuration_set_on_demand_cores_V25_t;
} pd_configuration_set_coretime_cores_V25_t;

#define PD_CALL_CONFIGURATION_SET_ON_DEMAND_RETRIES_V25 7
typedef struct {
Expand Down Expand Up @@ -1265,6 +1305,12 @@ typedef struct {
pd_u32_t new_;
} pd_configuration_set_minimum_backing_votes_V25_t;

#define PD_CALL_CONFIGURATION_SET_NODE_FEATURE_V25 53
typedef struct {
pd_u8_t index;
pd_bool_t value;
} pd_configuration_set_node_feature_V25_t;

#define PD_CALL_INITIALIZER_FORCE_APPROVE_V25 0
typedef struct {
pd_BlockNumber_t up_to;
Expand All @@ -1274,6 +1320,18 @@ typedef struct {
typedef struct {
} pd_parasdisputes_force_unfreeze_V25_t;

#define PD_CALL_ONDEMANDASSIGNMENTPROVIDER_PLACE_ORDER_ALLOW_DEATH_V25 0
typedef struct {
pd_Balance_t max_amount;
pd_ParaId_t para_id;
} pd_ondemandassignmentprovider_place_order_allow_death_V25_t;

#define PD_CALL_ONDEMANDASSIGNMENTPROVIDER_PLACE_ORDER_KEEP_ALIVE_V25 1
typedef struct {
pd_Balance_t max_amount;
pd_ParaId_t para_id;
} pd_ondemandassignmentprovider_place_order_keep_alive_V25_t;

#define PD_CALL_AUCTIONS_NEW_AUCTION_V25 0
typedef struct {
pd_Compactu32_t duration;
Expand All @@ -1293,6 +1351,16 @@ typedef struct {
typedef struct {
} pd_auctions_cancel_auction_V25_t;

#define PD_CALL_IDENTITYMIGRATOR_REAP_IDENTITY_V25 0
typedef struct {
pd_AccountId_t who;
} pd_identitymigrator_reap_identity_V25_t;

#define PD_CALL_IDENTITYMIGRATOR_POKE_DEPOSIT_V25 1
typedef struct {
pd_AccountId_t who;
} pd_identitymigrator_poke_deposit_V25_t;

#endif

typedef union {
Expand All @@ -1310,11 +1378,10 @@ typedef union {
pd_crowdloan_contribute_all_V25_t crowdloan_contribute_all_V25;
#ifdef SUBSTRATE_PARSER_FULL
#ifndef TARGET_NANOS
pd_xcmpallet_teleport_assets_V25_t xcmpallet_teleport_assets_V25;
pd_xcmpallet_reserve_transfer_assets_V25_t xcmpallet_reserve_transfer_assets_V25;
pd_xcmpallet_limited_reserve_transfer_assets_V25_t xcmpallet_limited_reserve_transfer_assets_V25;
pd_xcmpallet_limited_teleport_assets_V25_t xcmpallet_limited_teleport_assets_V25;
#endif
pd_system_authorize_upgrade_V25_t system_authorize_upgrade_V25;
pd_system_authorize_upgrade_without_checks_V25_t system_authorize_upgrade_without_checks_V25;
pd_system_apply_authorized_upgrade_V25_t system_apply_authorized_upgrade_V25;
pd_timestamp_set_V25_t timestamp_set_V25;
pd_indices_claim_V25_t indices_claim_V25;
pd_indices_transfer_V25_t indices_transfer_V25;
Expand All @@ -1324,6 +1391,7 @@ typedef union {
pd_balances_force_unreserve_V25_t balances_force_unreserve_V25;
pd_balances_upgrade_accounts_V25_t balances_upgrade_accounts_V25;
pd_balances_force_set_balance_V25_t balances_force_set_balance_V25;
pd_balances_force_adjust_total_issuance_V25_t balances_force_adjust_total_issuance_V25;
pd_staking_set_validator_count_V25_t staking_set_validator_count_V25;
pd_staking_increase_validator_count_V25_t staking_increase_validator_count_V25;
pd_staking_scale_validator_count_V25_t staking_scale_validator_count_V25;
Expand All @@ -1339,6 +1407,8 @@ typedef union {
pd_staking_chill_other_V25_t staking_chill_other_V25;
pd_staking_force_apply_min_commission_V25_t staking_force_apply_min_commission_V25;
pd_staking_set_min_commission_V25_t staking_set_min_commission_V25;
pd_staking_payout_stakers_by_page_V25_t staking_payout_stakers_by_page_V25;
pd_staking_update_payee_V25_t staking_update_payee_V25;
pd_treasury_propose_spend_V25_t treasury_propose_spend_V25;
pd_treasury_reject_proposal_V25_t treasury_reject_proposal_V25;
pd_treasury_approve_proposal_V25_t treasury_approve_proposal_V25;
Expand All @@ -1362,6 +1432,7 @@ typedef union {
pd_fellowshipcollective_remove_member_V25_t fellowshipcollective_remove_member_V25;
pd_fellowshipcollective_vote_V25_t fellowshipcollective_vote_V25;
pd_fellowshipcollective_cleanup_poll_V25_t fellowshipcollective_cleanup_poll_V25;
pd_fellowshipcollective_exchange_member_V25_t fellowshipcollective_exchange_member_V25;
pd_fellowshipreferenda_submit_V25_t fellowshipreferenda_submit_V25;
pd_fellowshipreferenda_place_decision_deposit_V25_t fellowshipreferenda_place_decision_deposit_V25;
pd_fellowshipreferenda_refund_decision_deposit_V25_t fellowshipreferenda_refund_decision_deposit_V25;
Expand Down Expand Up @@ -1395,6 +1466,8 @@ typedef union {
pd_identity_rename_sub_V25_t identity_rename_sub_V25;
pd_identity_remove_sub_V25_t identity_remove_sub_V25;
pd_identity_quit_sub_V25_t identity_quit_sub_V25;
pd_identity_add_username_authority_V25_t identity_add_username_authority_V25;
pd_identity_remove_username_authority_V25_t identity_remove_username_authority_V25;
pd_society_bid_V25_t society_bid_V25;
pd_society_unbid_V25_t society_unbid_V25;
pd_society_vouch_V25_t society_vouch_V25;
Expand Down Expand Up @@ -1427,6 +1500,7 @@ typedef union {
pd_vesting_vested_transfer_V25_t vesting_vested_transfer_V25;
pd_vesting_force_vested_transfer_V25_t vesting_force_vested_transfer_V25;
pd_vesting_merge_schedules_V25_t vesting_merge_schedules_V25;
pd_vesting_force_remove_vesting_schedule_V25_t vesting_force_remove_vesting_schedule_V25;
pd_proxy_remove_proxies_V25_t proxy_remove_proxies_V25;
pd_proxy_proxy_announced_V25_t proxy_proxy_announced_V25;
pd_preimage_note_preimage_V25_t preimage_note_preimage_V25;
Expand Down Expand Up @@ -1464,6 +1538,7 @@ typedef union {
pd_niscounterpartbalances_force_unreserve_V25_t niscounterpartbalances_force_unreserve_V25;
pd_niscounterpartbalances_upgrade_accounts_V25_t niscounterpartbalances_upgrade_accounts_V25;
pd_niscounterpartbalances_force_set_balance_V25_t niscounterpartbalances_force_set_balance_V25;
pd_niscounterpartbalances_force_adjust_total_issuance_V25_t niscounterpartbalances_force_adjust_total_issuance_V25;
pd_voterlist_rebag_V25_t voterlist_rebag_V25;
pd_voterlist_put_in_front_of_V25_t voterlist_put_in_front_of_V25;
pd_voterlist_put_in_front_of_other_V25_t voterlist_put_in_front_of_other_V25;
Expand All @@ -1472,14 +1547,15 @@ typedef union {
pd_nominationpools_set_configs_V25_t nominationpools_set_configs_V25;
pd_nominationpools_bond_extra_other_V25_t nominationpools_bond_extra_other_V25;
pd_nominationpools_adjust_pool_deposit_V25_t nominationpools_adjust_pool_deposit_V25;
pd_nominationpools_set_commission_claim_permission_V25_t nominationpools_set_commission_claim_permission_V25;
pd_fastunstake_control_V25_t fastunstake_control_V25;
pd_configuration_set_validation_upgrade_cooldown_V25_t configuration_set_validation_upgrade_cooldown_V25;
pd_configuration_set_validation_upgrade_delay_V25_t configuration_set_validation_upgrade_delay_V25;
pd_configuration_set_code_retention_period_V25_t configuration_set_code_retention_period_V25;
pd_configuration_set_max_code_size_V25_t configuration_set_max_code_size_V25;
pd_configuration_set_max_pov_size_V25_t configuration_set_max_pov_size_V25;
pd_configuration_set_max_head_data_size_V25_t configuration_set_max_head_data_size_V25;
pd_configuration_set_on_demand_cores_V25_t configuration_set_on_demand_cores_V25;
pd_configuration_set_coretime_cores_V25_t configuration_set_coretime_cores_V25;
pd_configuration_set_on_demand_retries_V25_t configuration_set_on_demand_retries_V25;
pd_configuration_set_group_rotation_frequency_V25_t configuration_set_group_rotation_frequency_V25;
pd_configuration_set_paras_availability_period_V25_t configuration_set_paras_availability_period_V25;
Expand Down Expand Up @@ -1516,11 +1592,16 @@ typedef union {
pd_configuration_set_on_demand_target_queue_utilization_V25_t configuration_set_on_demand_target_queue_utilization_V25;
pd_configuration_set_on_demand_ttl_V25_t configuration_set_on_demand_ttl_V25;
pd_configuration_set_minimum_backing_votes_V25_t configuration_set_minimum_backing_votes_V25;
pd_configuration_set_node_feature_V25_t configuration_set_node_feature_V25;
pd_initializer_force_approve_V25_t initializer_force_approve_V25;
pd_parasdisputes_force_unfreeze_V25_t parasdisputes_force_unfreeze_V25;
pd_ondemandassignmentprovider_place_order_allow_death_V25_t ondemandassignmentprovider_place_order_allow_death_V25;
pd_ondemandassignmentprovider_place_order_keep_alive_V25_t ondemandassignmentprovider_place_order_keep_alive_V25;
pd_auctions_new_auction_V25_t auctions_new_auction_V25;
pd_auctions_bid_V25_t auctions_bid_V25;
pd_auctions_cancel_auction_V25_t auctions_cancel_auction_V25;
pd_identitymigrator_reap_identity_V25_t identitymigrator_reap_identity_V25;
pd_identitymigrator_poke_deposit_V25_t identitymigrator_poke_deposit_V25;
#endif
} pd_MethodBasic_V25_t;

Expand Down
Loading

0 comments on commit 24d08bb

Please sign in to comment.