@@ -64,6 +64,32 @@ type BalanceOf<T> = <<T as Trait>::Currency as Currency<<T as frame_system::Trai
64
64
/// Just a bunch of bytes, but they should decode to a valid `Call`.
65
65
pub type OpaqueCall = Vec < u8 > ;
66
66
67
+ pub trait WeightInfo {
68
+ fn as_multi_threshold_1 ( z : u32 , ) -> Weight ;
69
+ fn as_multi_create ( s : u32 , z : u32 , ) -> Weight ;
70
+ fn as_multi_create_store ( s : u32 , z : u32 , ) -> Weight ;
71
+ fn as_multi_approve ( s : u32 , z : u32 , ) -> Weight ;
72
+ fn as_multi_complete ( s : u32 , z : u32 , ) -> Weight ;
73
+ fn approve_as_multi_create ( s : u32 , z : u32 , ) -> Weight ;
74
+ fn approve_as_multi_approve ( s : u32 , z : u32 , ) -> Weight ;
75
+ fn approve_as_multi_complete ( s : u32 , z : u32 , ) -> Weight ;
76
+ fn cancel_as_multi ( s : u32 , z : u32 , ) -> Weight ;
77
+ fn cancel_as_multi_store ( s : u32 , z : u32 , ) -> Weight ;
78
+ }
79
+
80
+ impl WeightInfo for ( ) {
81
+ fn as_multi_threshold_1 ( _z : u32 , ) -> Weight { 1_000_000_000 }
82
+ fn as_multi_create ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
83
+ fn as_multi_create_store ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
84
+ fn as_multi_approve ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
85
+ fn as_multi_complete ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
86
+ fn approve_as_multi_create ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
87
+ fn approve_as_multi_approve ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
88
+ fn approve_as_multi_complete ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
89
+ fn cancel_as_multi ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
90
+ fn cancel_as_multi_store ( _s : u32 , _z : u32 , ) -> Weight { 1_000_000_000 }
91
+ }
92
+
67
93
/// Configuration trait.
68
94
pub trait Trait : frame_system:: Trait {
69
95
/// The overarching event type.
@@ -91,6 +117,9 @@ pub trait Trait: frame_system::Trait {
91
117
92
118
/// The maximum amount of signatories allowed in the multisig.
93
119
type MaxSignatories : Get < u16 > ;
120
+
121
+ /// Weight information for extrinsics in this pallet.
122
+ type WeightInfo : WeightInfo ;
94
123
}
95
124
96
125
/// A global extrinsic index, formed as the extrinsic index within a block, together with that
0 commit comments