Referenda¶
Calls¶
cancel¶
See [Pallet::cancel
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'cancel', {'index': 'u32'}
)
kill¶
See [Pallet::kill
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'kill', {'index': 'u32'}
)
nudge_referendum¶
See [Pallet::nudge_referendum
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'nudge_referendum', {'index': 'u32'}
)
one_fewer_deciding¶
See [Pallet::one_fewer_deciding
].
Attributes¶
Name | Type |
---|---|
track | TrackIdOf<T, I> |
Python¶
call = substrate.compose_call(
'Referenda', 'one_fewer_deciding', {'track': 'u16'}
)
place_decision_deposit¶
See [Pallet::place_decision_deposit
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'place_decision_deposit', {'index': 'u32'}
)
refund_decision_deposit¶
See [Pallet::refund_decision_deposit
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'refund_decision_deposit', {'index': 'u32'}
)
refund_submission_deposit¶
See [Pallet::refund_submission_deposit
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
Python¶
call = substrate.compose_call(
'Referenda', 'refund_submission_deposit', {'index': 'u32'}
)
set_metadata¶
See [Pallet::set_metadata
].
Attributes¶
Name | Type |
---|---|
index | ReferendumIndex |
maybe_hash | Option<T::Hash> |
Python¶
call = substrate.compose_call(
'Referenda', 'set_metadata', {
'index': 'u32',
'maybe_hash': (
None,
'scale_info::12',
),
}
)
submit¶
See [Pallet::submit
].
Attributes¶
Name | Type |
---|---|
proposal_origin | Box<PalletsOriginOf<T>> |
proposal | BoundedCallOf<T, I> |
enactment_moment | DispatchTime<BlockNumberFor<T>> |
Python¶
call = substrate.compose_call(
'Referenda', 'submit', {
'enactment_moment': {
'After': 'u32',
'At': 'u32',
},
'proposal': {
'Inline': 'Bytes',
'Legacy': {
'hash': 'scale_info::12',
},
'Lookup': {
'hash': 'scale_info::12',
'len': 'u32',
},
},
'proposal_origin': {
'Council': {
'Member': 'AccountId',
'Members': ('u32', 'u32'),
'_Phantom': None,
},
'CumulusXcm': {
'Relay': None,
'SiblingParachain': 'u32',
},
'Origins': (
'WhitelistedCaller',
'FellowshipAdmin',
'ReferendumCanceller',
'ReferendumKiller',
'LiquidStaking',
'SALPAdmin',
'FellowshipInitiates',
'Fellows',
'FellowshipExperts',
'FellowshipMasters',
'Fellowship1Dan',
'Fellowship2Dan',
'Fellowship3Dan',
'Fellowship4Dan',
'Fellowship5Dan',
'Fellowship6Dan',
'Fellowship7Dan',
'Fellowship8Dan',
'Fellowship9Dan',
'TechAdmin',
'CoreAdmin',
'TreasurySpend',
),
'PolkadotXcm': {
'Response': {
'interior': {
'Here': None,
'X1': {
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::124',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::124',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::124',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::125',
'part': 'scale_info::126',
},
},
'X2': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X3': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X4': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X5': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X6': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X7': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X8': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
},
'parents': 'u8',
},
'Xcm': {
'interior': {
'Here': None,
'X1': {
'AccountId32': {
'id': '[u8; 32]',
'network': (
None,
'scale_info::124',
),
},
'AccountIndex64': {
'index': 'u64',
'network': (
None,
'scale_info::124',
),
},
'AccountKey20': {
'key': '[u8; 20]',
'network': (
None,
'scale_info::124',
),
},
'GeneralIndex': 'u128',
'GeneralKey': {
'data': '[u8; 32]',
'length': 'u8',
},
'GlobalConsensus': {
'BitcoinCash': None,
'BitcoinCore': None,
'ByFork': 'InnerStruct',
'ByGenesis': '[u8; 32]',
'Ethereum': 'InnerStruct',
'Kusama': None,
'Polkadot': None,
'Rococo': None,
'Westend': None,
'Wococo': None,
},
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': {
'id': 'scale_info::125',
'part': 'scale_info::126',
},
},
'X2': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X3': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X4': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X5': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X6': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X7': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
'X8': (
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
{
'AccountId32': 'InnerStruct',
'AccountIndex64': 'InnerStruct',
'AccountKey20': 'InnerStruct',
'GeneralIndex': 'u128',
'GeneralKey': 'InnerStruct',
'GlobalConsensus': 'scale_info::124',
'OnlyChild': None,
'PalletInstance': 'u8',
'Parachain': 'u32',
'Plurality': 'InnerStruct',
},
),
},
'parents': 'u8',
},
},
None: None,
'TechnicalCommittee': {
'Member': 'AccountId',
'Members': ('u32', 'u32'),
'_Phantom': None,
},
'Void': (),
'system': {
'None': None,
'Root': None,
'Signed': 'AccountId',
},
},
}
)
Events¶
Approved¶
A referendum has been approved and its proposal has been scheduled.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
Cancelled¶
A referendum has been cancelled.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
ConfirmAborted¶
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
ConfirmStarted¶
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
Confirmed¶
A referendum has ended its confirmation phase and is ready for approval.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
DecisionDepositPlaced¶
The decision deposit has been placed.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
who | T::AccountId |
AccountId |
amount | BalanceOf<T, I> |
u128 |
DecisionDepositRefunded¶
The decision deposit has been refunded.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
who | T::AccountId |
AccountId |
amount | BalanceOf<T, I> |
u128 |
DecisionStarted¶
A referendum has moved into the deciding phase.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
track | TrackIdOf<T, I> |
u16 |
proposal | BoundedCallOf<T, I> |
{'Legacy': {'hash': 'scale_info::12'}, 'Inline': 'Bytes', 'Lookup': {'hash': 'scale_info::12', 'len': 'u32'}} |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
DepositSlashed¶
A deposit has been slashaed.
Attributes¶
Name | Type | Composition |
---|---|---|
who | T::AccountId |
AccountId |
amount | BalanceOf<T, I> |
u128 |
Killed¶
A referendum has been killed.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
MetadataCleared¶
Metadata for a referendum has been cleared.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
hash | T::Hash |
scale_info::12 |
MetadataSet¶
Metadata for a referendum has been set.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
hash | T::Hash |
scale_info::12 |
Rejected¶
A proposal has been rejected by referendum.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
SubmissionDepositRefunded¶
The submission deposit has been refunded.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
who | T::AccountId |
AccountId |
amount | BalanceOf<T, I> |
u128 |
Submitted¶
A referendum has been submitted.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
track | TrackIdOf<T, I> |
u16 |
proposal | BoundedCallOf<T, I> |
{'Legacy': {'hash': 'scale_info::12'}, 'Inline': 'Bytes', 'Lookup': {'hash': 'scale_info::12', 'len': 'u32'}} |
TimedOut¶
A referendum has been timed out without being decided.
Attributes¶
Name | Type | Composition |
---|---|---|
index | ReferendumIndex |
u32 |
tally | T::Tally |
{'ayes': 'u128', 'nays': 'u128', 'support': 'u128'} |
Storage functions¶
DecidingCount¶
The number of referenda being decided currently.
Python¶
result = substrate.query(
'Referenda', 'DecidingCount', ['u16']
)
Return value¶
'u32'
MetadataOf¶
The metadata is a general information concerning the referendum.
The Hash
refers to the preimage of the Preimages
provider which can be a JSON
dump or IPFS hash of a JSON file.
Consider a garbage collection for a metadata of finished referendums to unrequest
(remove)
large preimages.
Python¶
result = substrate.query(
'Referenda', 'MetadataOf', ['u32']
)
Return value¶
'scale_info::12'
ReferendumCount¶
The next free referendum index, aka the number of referenda started so far.
Python¶
result = substrate.query(
'Referenda', 'ReferendumCount', []
)
Return value¶
'u32'
ReferendumInfoFor¶
Information concerning any given referendum.
Python¶
result = substrate.query(
'Referenda', 'ReferendumInfoFor', ['u32']
)
Return value¶
{
'Approved': (
'u32',
(None, {'amount': 'u128', 'who': 'AccountId'}),
(None, {'amount': 'u128', 'who': 'AccountId'}),
),
'Cancelled': (
'u32',
(None, {'amount': 'u128', 'who': 'AccountId'}),
(None, {'amount': 'u128', 'who': 'AccountId'}),
),
'Killed': 'u32',
'Ongoing': {
'alarm': (None, ('u32', ('u32', 'u32'))),
'deciding': (None, {'confirming': (None, 'u32'), 'since': 'u32'}),
'decision_deposit': (None, {'amount': 'u128', 'who': 'AccountId'}),
'enactment': {'After': 'u32', 'At': 'u32'},
'in_queue': 'bool',
'origin': {
'Council': {
'Member': 'AccountId',
'Members': ('u32', 'u32'),
'_Phantom': None,
},
'CumulusXcm': {'Relay': None, 'SiblingParachain': 'u32'},
'Origins': (
'WhitelistedCaller',
'FellowshipAdmin',
'ReferendumCanceller',
'ReferendumKiller',
'LiquidStaking',
'SALPAdmin',
'FellowshipInitiates',
'Fellows',
'FellowshipExperts',
'FellowshipMasters',
'Fellowship1Dan',
'Fellowship2Dan',
'Fellowship3Dan',
'Fellowship4Dan',
'Fellowship5Dan',
'Fellowship6Dan',
'Fellowship7Dan',
'Fellowship8Dan',
'Fellowship9Dan',
'TechAdmin',
'CoreAdmin',
'TreasurySpend',
),
'PolkadotXcm': {
'Response': {'interior': 'scale_info::121', 'parents': 'u8'},
'Xcm': {'interior': 'scale_info::121', 'parents': 'u8'},
},
'TechnicalCommittee': {
'Member': 'AccountId',
'Members': ('u32', 'u32'),
'_Phantom': None,
},
'Void': (),
'system': {'None': None, 'Root': None, 'Signed': 'AccountId'},
None: None,
},
'proposal': {
'Inline': 'Bytes',
'Legacy': {'hash': 'scale_info::12'},
'Lookup': {'hash': 'scale_info::12', 'len': 'u32'},
},
'submission_deposit': {'amount': 'u128', 'who': 'AccountId'},
'submitted': 'u32',
'tally': {'ayes': 'u128', 'nays': 'u128', 'support': 'u128'},
'track': 'u16',
},
'Rejected': (
'u32',
(None, {'amount': 'u128', 'who': 'AccountId'}),
(None, {'amount': 'u128', 'who': 'AccountId'}),
),
'TimedOut': (
'u32',
(None, {'amount': 'u128', 'who': 'AccountId'}),
(None, {'amount': 'u128', 'who': 'AccountId'}),
),
}
TrackQueue¶
The sorted list of referenda ready to be decided but not yet being decided, ordered by conviction-weighted approvals.
This should be empty if DecidingCount
is less than TrackInfo::max_deciding
.
Python¶
result = substrate.query(
'Referenda', 'TrackQueue', ['u16']
)
Return value¶
[('u32', 'u128')]
Constants¶
AlarmInterval¶
Quantization level for the referendum wakeup scheduler. A higher number will result in fewer storage reads/writes needed for smaller voters, but also result in delays to the automatic referendum status changes. Explicit servicing instructions are unaffected.
Value¶
1
Python¶
constant = substrate.get_constant('Referenda', 'AlarmInterval')
MaxQueued¶
Maximum size of the referendum queue for a single track.
Value¶
100
Python¶
constant = substrate.get_constant('Referenda', 'MaxQueued')
SubmissionDeposit¶
The minimum amount to be used as a deposit for a public referendum proposal.
Value¶
10000000000000
Python¶
constant = substrate.get_constant('Referenda', 'SubmissionDeposit')
Tracks¶
Information concerning the different referendum tracks.
Value¶
[
(
0,
{
'confirm_period': 7200,
'decision_deposit': 50000000000000000,
'decision_period': 100800,
'max_deciding': 1,
'min_approval': {
'Reciprocal': {
'factor': 222222224,
'x_offset': 333333335,
'y_offset': 333333332,
},
},
'min_enactment_period': 7200,
'min_support': {
'LinearDecreasing': {
'ceil': 500000000,
'floor': 0,
'length': 1000000000,
},
},
'name': 'root',
'prepare_period': 600,
},
),
(
1,
{
'confirm_period': 50,
'decision_deposit': 5000000000000000,
'decision_period': 100800,
'max_deciding': 100,
'min_approval': {
'Reciprocal': {
'factor': 270899180,
'x_offset': 389830523,
'y_offset': 305084738,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 2566772,
'x_offset': 5319148,
'y_offset': 17446809,
},
},
'name': 'whitelisted_caller',
'prepare_period': 75,
},
),
(
2,
{
'confirm_period': 900,
'decision_deposit': 2500000000000000,
'decision_period': 100800,
'max_deciding': 10,
'min_approval': {
'LinearDecreasing': {
'ceil': 1000000000,
'floor': 500000000,
'length': 607142857,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 7892829,
'x_offset': 15544040,
'y_offset': -7772020,
},
},
'name': 'fellowship_admin',
'prepare_period': 600,
},
),
(
3,
{
'confirm_period': 900,
'decision_deposit': 5000000000000000,
'decision_period': 50400,
'max_deciding': 1000,
'min_approval': {
'LinearDecreasing': {
'ceil': 1000000000,
'floor': 500000000,
'length': 607142857,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 7892829,
'x_offset': 15544040,
'y_offset': -7772020,
},
},
'name': 'referendum_canceller',
'prepare_period': 600,
},
),
(
4,
{
'confirm_period': 900,
'decision_deposit': 25000000000000000,
'decision_period': 100800,
'max_deciding': 1000,
'min_approval': {
'LinearDecreasing': {
'ceil': 1000000000,
'floor': 500000000,
'length': 607142857,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 7892829,
'x_offset': 15544040,
'y_offset': -7772020,
},
},
'name': 'referendum_killer',
'prepare_period': 600,
},
),
(
10,
{
'confirm_period': 900,
'decision_deposit': 2500000000000000,
'decision_period': 100800,
'max_deciding': 10,
'min_approval': {
'Reciprocal': {
'factor': 73724007,
'x_offset': 130434781,
'y_offset': 434782609,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 4347503,
'x_offset': 8620689,
'y_offset': -4310345,
},
},
'name': 'liquid_staking',
'prepare_period': 600,
},
),
(
12,
{
'confirm_period': 300,
'decision_deposit': 2500000000000000,
'decision_period': 100800,
'max_deciding': 10,
'min_approval': {
'Reciprocal': {
'factor': 73724007,
'x_offset': 130434781,
'y_offset': 434782609,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 4347503,
'x_offset': 8620689,
'y_offset': -4310345,
},
},
'name': 'salp_admin',
'prepare_period': 75,
},
),
(
13,
{
'confirm_period': 900,
'decision_deposit': 500000000000000,
'decision_period': 100800,
'max_deciding': 100,
'min_approval': {
'LinearDecreasing': {
'ceil': 1000000000,
'floor': 500000000,
'length': 821428571,
},
},
'min_enactment_period': 50,
'min_support': {
'Reciprocal': {
'factor': 14377233,
'x_offset': 27972031,
'y_offset': -13986016,
},
},
'name': 'treasury_spend',
'prepare_period': 600,
},
),
]
Python¶
constant = substrate.get_constant('Referenda', 'Tracks')
UndecidingTimeout¶
The number of blocks after submission that a referendum must begin being decided by. Once this passes, then anyone may cancel the referendum.
Value¶
100800
Python¶
constant = substrate.get_constant('Referenda', 'UndecidingTimeout')
Errors¶
BadReferendum¶
The referendum index provided is invalid in this context.
BadStatus¶
The referendum status is invalid for this operation.
BadTrack¶
The track identifier given was invalid.
Full¶
There are already a full complement of referenda in progress for this track.
HasDeposit¶
Referendum's decision deposit is already paid.
NoDeposit¶
The deposit cannot be refunded since none was made.
NoPermission¶
The deposit refunder is not the depositor.
NoTrack¶
No track exists for the proposal origin.
NotOngoing¶
Referendum is not ongoing.
NothingToDo¶
There was nothing to do in the advancement.
PreimageNotExist¶
The preimage does not exist.
QueueEmpty¶
The queue of the track is empty.
Unfinished¶
Any deposit cannot be refunded until after the decision is over.