@@ -42,6 +42,10 @@ import * as v9430 from '../v9430'
42
42
import * as v1000000 from '../v1000000'
43
43
import * as v1001000 from '../v1001000'
44
44
import * as v1002000 from '../v1002000'
45
+ import * as v1002004 from '../v1002004'
46
+ import * as v1002005 from '../v1002005'
47
+ import * as v1002006 from '../v1002006'
48
+ import * as v1003000 from '../v1003000'
45
49
46
50
export const asMulti = {
47
51
name : 'Multisig.as_multi' ,
@@ -717,6 +721,96 @@ export const asMulti = {
717
721
maxWeight : v1002000 . Weight ,
718
722
} )
719
723
) ,
724
+ /**
725
+ * See [`Pallet::as_multi`].
726
+ */
727
+ v1002004 : new CallType (
728
+ 'Multisig.as_multi' ,
729
+ sts . struct ( {
730
+ threshold : sts . number ( ) ,
731
+ otherSignatories : sts . array ( ( ) => v1002004 . AccountId32 ) ,
732
+ maybeTimepoint : sts . option ( ( ) => v1002004 . Timepoint ) ,
733
+ call : v1002004 . Call ,
734
+ maxWeight : v1002004 . Weight ,
735
+ } )
736
+ ) ,
737
+ /**
738
+ * See [`Pallet::as_multi`].
739
+ */
740
+ v1002005 : new CallType (
741
+ 'Multisig.as_multi' ,
742
+ sts . struct ( {
743
+ threshold : sts . number ( ) ,
744
+ otherSignatories : sts . array ( ( ) => v1002005 . AccountId32 ) ,
745
+ maybeTimepoint : sts . option ( ( ) => v1002005 . Timepoint ) ,
746
+ call : v1002005 . Call ,
747
+ maxWeight : v1002005 . Weight ,
748
+ } )
749
+ ) ,
750
+ /**
751
+ * See [`Pallet::as_multi`].
752
+ */
753
+ v1002006 : new CallType (
754
+ 'Multisig.as_multi' ,
755
+ sts . struct ( {
756
+ threshold : sts . number ( ) ,
757
+ otherSignatories : sts . array ( ( ) => v1002006 . AccountId32 ) ,
758
+ maybeTimepoint : sts . option ( ( ) => v1002006 . Timepoint ) ,
759
+ call : v1002006 . Call ,
760
+ maxWeight : v1002006 . Weight ,
761
+ } )
762
+ ) ,
763
+ /**
764
+ * Register approval for a dispatch to be made from a deterministic composite account if
765
+ * approved by a total of `threshold - 1` of `other_signatories`.
766
+ *
767
+ * If there are enough, then dispatch the call.
768
+ *
769
+ * Payment: `DepositBase` will be reserved if this is the first approval, plus
770
+ * `threshold` times `DepositFactor`. It is returned once this dispatch happens or
771
+ * is cancelled.
772
+ *
773
+ * The dispatch origin for this call must be _Signed_.
774
+ *
775
+ * - `threshold`: The total number of approvals for this dispatch before it is executed.
776
+ * - `other_signatories`: The accounts (other than the sender) who can approve this
777
+ * dispatch. May not be empty.
778
+ * - `maybe_timepoint`: If this is the first approval, then this must be `None`. If it is
779
+ * not the first approval, then it must be `Some`, with the timepoint (block number and
780
+ * transaction index) of the first approval transaction.
781
+ * - `call`: The call to be executed.
782
+ *
783
+ * NOTE: Unless this is the final approval, you will generally want to use
784
+ * `approve_as_multi` instead, since it only requires a hash of the call.
785
+ *
786
+ * Result is equivalent to the dispatched result if `threshold` is exactly `1`. Otherwise
787
+ * on success, result is `Ok` and the result from the interior call, if it was executed,
788
+ * may be found in the deposited `MultisigExecuted` event.
789
+ *
790
+ * ## Complexity
791
+ * - `O(S + Z + Call)`.
792
+ * - Up to one balance-reserve or unreserve operation.
793
+ * - One passthrough operation, one insert, both `O(S)` where `S` is the number of
794
+ * signatories. `S` is capped by `MaxSignatories`, with weight being proportional.
795
+ * - One call encode & hash, both of complexity `O(Z)` where `Z` is tx-len.
796
+ * - One encode & hash, both of complexity `O(S)`.
797
+ * - Up to one binary search and insert (`O(logS + S)`).
798
+ * - I/O: 1 read `O(S)`, up to 1 mutate `O(S)`. Up to one remove.
799
+ * - One event.
800
+ * - The weight of the `call`.
801
+ * - Storage: inserts one item, value size bounded by `MaxSignatories`, with a deposit
802
+ * taken for its lifetime of `DepositBase + threshold * DepositFactor`.
803
+ */
804
+ v1003000 : new CallType (
805
+ 'Multisig.as_multi' ,
806
+ sts . struct ( {
807
+ threshold : sts . number ( ) ,
808
+ otherSignatories : sts . array ( ( ) => v1003000 . AccountId32 ) ,
809
+ maybeTimepoint : sts . option ( ( ) => v1003000 . Timepoint ) ,
810
+ call : v1003000 . Call ,
811
+ maxWeight : v1003000 . Weight ,
812
+ } )
813
+ ) ,
720
814
}
721
815
722
816
export const approveAsMulti = {
@@ -1940,4 +2034,55 @@ export const asMultiThreshold1 = {
1940
2034
call : v1002000 . Call ,
1941
2035
} )
1942
2036
) ,
2037
+ /**
2038
+ * See [`Pallet::as_multi_threshold_1`].
2039
+ */
2040
+ v1002004 : new CallType (
2041
+ 'Multisig.as_multi_threshold_1' ,
2042
+ sts . struct ( {
2043
+ otherSignatories : sts . array ( ( ) => v1002004 . AccountId32 ) ,
2044
+ call : v1002004 . Call ,
2045
+ } )
2046
+ ) ,
2047
+ /**
2048
+ * See [`Pallet::as_multi_threshold_1`].
2049
+ */
2050
+ v1002005 : new CallType (
2051
+ 'Multisig.as_multi_threshold_1' ,
2052
+ sts . struct ( {
2053
+ otherSignatories : sts . array ( ( ) => v1002005 . AccountId32 ) ,
2054
+ call : v1002005 . Call ,
2055
+ } )
2056
+ ) ,
2057
+ /**
2058
+ * See [`Pallet::as_multi_threshold_1`].
2059
+ */
2060
+ v1002006 : new CallType (
2061
+ 'Multisig.as_multi_threshold_1' ,
2062
+ sts . struct ( {
2063
+ otherSignatories : sts . array ( ( ) => v1002006 . AccountId32 ) ,
2064
+ call : v1002006 . Call ,
2065
+ } )
2066
+ ) ,
2067
+ /**
2068
+ * Immediately dispatch a multi-signature call using a single approval from the caller.
2069
+ *
2070
+ * The dispatch origin for this call must be _Signed_.
2071
+ *
2072
+ * - `other_signatories`: The accounts (other than the sender) who are part of the
2073
+ * multi-signature, but do not participate in the approval process.
2074
+ * - `call`: The call to be executed.
2075
+ *
2076
+ * Result is equivalent to the dispatched result.
2077
+ *
2078
+ * ## Complexity
2079
+ * O(Z + C) where Z is the length of the call and C its execution weight.
2080
+ */
2081
+ v1003000 : new CallType (
2082
+ 'Multisig.as_multi_threshold_1' ,
2083
+ sts . struct ( {
2084
+ otherSignatories : sts . array ( ( ) => v1003000 . AccountId32 ) ,
2085
+ call : v1003000 . Call ,
2086
+ } )
2087
+ ) ,
1943
2088
}
0 commit comments