@@ -303,6 +303,7 @@ mod pallet {
303303 ///
304304 /// Must be called by `DestroyOrigin`. Bonds (unless already returned) are slashed without
305305 /// exception. Can currently only be used for destroying CPMM markets.
306+ #[ pallet:: call_index( 0 ) ]
306307 #[ pallet:: weight( (
307308 T :: WeightInfo :: admin_destroy_reported_market(
308309 T :: MaxCategories :: get( ) . into( ) ,
@@ -419,6 +420,7 @@ mod pallet {
419420 //
420421 // Within the same block, operations that interact with the activeness of the same
421422 // market will behave differently before and after this call.
423+ #[ pallet:: call_index( 1 ) ]
422424 #[ pallet:: weight( (
423425 T :: WeightInfo :: admin_move_market_to_closed(
424426 CacheSize :: get( ) , CacheSize :: get( ) ) , Pays :: No
@@ -452,6 +454,7 @@ mod pallet {
452454 ///
453455 /// Complexity: `O(n + m)`, where `n` is the number of market ids
454456 /// per dispute / report block, m is the number of disputes.
457+ #[ pallet:: call_index( 2 ) ]
455458 #[ pallet:: weight( (
456459 T :: WeightInfo :: admin_move_market_to_resolved_scalar_reported( CacheSize :: get( ) )
457460 . max(
@@ -512,6 +515,7 @@ mod pallet {
512515 /// # Weight
513516 ///
514517 /// Complexity: `O(1)`
518+ #[ pallet:: call_index( 3 ) ]
515519 #[ pallet:: weight( ( T :: WeightInfo :: approve_market( ) , Pays :: No ) ) ]
516520 #[ transactional]
517521 pub fn approve_market (
@@ -564,6 +568,7 @@ mod pallet {
564568 /// # Weight
565569 ///
566570 /// Complexity: `O(edit_reason.len())`
571+ #[ pallet:: call_index( 4 ) ]
567572 #[ pallet:: weight( (
568573 T :: WeightInfo :: request_edit( edit_reason. len( ) as u32 ) ,
569574 Pays :: No ,
@@ -609,6 +614,7 @@ mod pallet {
609614 // The worst-case scenario is assumed
610615 // and the correct weight is calculated at the end of this function.
611616 // This also occurs in numerous other functions.
617+ #[ pallet:: call_index( 5 ) ]
612618 #[ pallet:: weight( T :: WeightInfo :: buy_complete_set( T :: MaxCategories :: get( ) . into( ) ) ) ]
613619 #[ transactional]
614620 pub fn buy_complete_set (
@@ -625,6 +631,7 @@ mod pallet {
625631 /// # Weight
626632 ///
627633 /// Complexity: `O(n)`, where `n` is the number of outstanding disputes.
634+ #[ pallet:: call_index( 6 ) ]
628635 #[ pallet:: weight( T :: WeightInfo :: dispute_authorized( ) ) ]
629636 #[ transactional]
630637 pub fn dispute (
@@ -701,6 +708,7 @@ mod pallet {
701708 /// where `n` is the number of outcome assets for the categorical market
702709 /// and `m` is the number of market ids,
703710 /// which open at the same time as the specified market.
711+ #[ pallet:: call_index( 7 ) ]
704712 #[ pallet:: weight(
705713 T :: WeightInfo :: create_market( CacheSize :: get( ) )
706714 . saturating_add( T :: WeightInfo :: buy_complete_set( T :: MaxCategories :: get( ) . into( ) ) )
@@ -763,6 +771,7 @@ mod pallet {
763771 ///
764772 /// Complexity: `O(n)`, where `n` is the number of market ids,
765773 /// which close at the same time as the specified market.
774+ #[ pallet:: call_index( 8 ) ]
766775 #[ pallet:: weight( T :: WeightInfo :: create_market( CacheSize :: get( ) ) ) ]
767776 #[ transactional]
768777 pub fn create_market (
@@ -851,6 +860,7 @@ mod pallet {
851860 ///
852861 /// Complexity: `O(n)`, where `n` is the number of markets
853862 /// which end at the same time as the market before the edit.
863+ #[ pallet:: call_index( 9 ) ]
854864 #[ pallet:: weight( T :: WeightInfo :: edit_market( CacheSize :: get( ) ) ) ]
855865 #[ transactional]
856866 pub fn edit_market (
@@ -927,6 +937,7 @@ mod pallet {
927937 /// where `n` is the number of outcome assets for the categorical market,
928938 /// and `m` is the number of market ids,
929939 /// which open at the same time as the specified market.
940+ #[ pallet:: call_index( 10 ) ]
930941 #[ pallet:: weight(
931942 T :: WeightInfo :: buy_complete_set( T :: MaxCategories :: get( ) . into( ) )
932943 . saturating_add(
@@ -978,6 +989,7 @@ mod pallet {
978989 /// where `n` is the number of outcome assets for the categorical market,
979990 /// and `m` is the number of market ids,
980991 /// which open at the same time as the specified market.
992+ #[ pallet:: call_index( 11 ) ]
981993 #[ pallet:: weight(
982994 T :: WeightInfo :: deploy_swap_pool_for_market_open_pool( weights. len( ) as u32 )
983995 . max(
@@ -1085,6 +1097,7 @@ mod pallet {
10851097 /// # Weight
10861098 ///
10871099 /// Complexity: `O(1)`
1100+ #[ pallet:: call_index( 12 ) ]
10881101 #[ pallet:: weight( T :: WeightInfo :: redeem_shares_categorical( )
10891102 . max( T :: WeightInfo :: redeem_shares_scalar( ) )
10901103 ) ]
@@ -1229,6 +1242,7 @@ mod pallet {
12291242 /// which open at the same time as the specified market,
12301243 /// and `m` is the number of market ids,
12311244 /// which close at the same time as the specified market.
1245+ #[ pallet:: call_index( 13 ) ]
12321246 #[ pallet:: weight( (
12331247 T :: WeightInfo :: reject_market(
12341248 CacheSize :: get( ) ,
@@ -1266,6 +1280,7 @@ mod pallet {
12661280 ///
12671281 /// Complexity: `O(n)`, where `n` is the number of market ids,
12681282 /// which reported at the same time as the specified market.
1283+ #[ pallet:: call_index( 14 ) ]
12691284 #[ pallet:: weight( T :: WeightInfo :: report( CacheSize :: get( ) ) ) ]
12701285 #[ transactional]
12711286 pub fn report (
@@ -1377,6 +1392,7 @@ mod pallet {
13771392 /// # Weight
13781393 ///
13791394 /// Complexity: `O(n)`, where `n` is the number of assets for a categorical market.
1395+ #[ pallet:: call_index( 15 ) ]
13801396 #[ pallet:: weight(
13811397 T :: WeightInfo :: sell_complete_set( T :: MaxCategories :: get( ) . into( ) )
13821398 ) ]
@@ -1434,6 +1450,7 @@ mod pallet {
14341450 /// The outcomes of the disputes and the report outcome
14351451 /// are added to the global dispute voting outcomes.
14361452 /// The bond of each dispute is the initial vote amount.
1453+ #[ pallet:: call_index( 16 ) ]
14371454 #[ pallet:: weight( T :: WeightInfo :: start_global_dispute( CacheSize :: get( ) , CacheSize :: get( ) ) ) ]
14381455 #[ transactional]
14391456 pub fn start_global_dispute (
0 commit comments