HomaCouncilMembership¶
Calls¶
add_member¶
Attributes¶
Name | Type |
---|---|
who | AccountIdLookupOf<T> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'add_member', {
'who': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
}
)
change_key¶
Attributes¶
Name | Type |
---|---|
new | AccountIdLookupOf<T> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'change_key', {
'new': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
}
)
clear_prime¶
Attributes¶
No attributes
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'clear_prime', {}
)
remove_member¶
Attributes¶
Name | Type |
---|---|
who | AccountIdLookupOf<T> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'remove_member', {
'who': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
}
)
reset_members¶
Attributes¶
Name | Type |
---|---|
members | Vec<T::AccountId> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'reset_members', {'members': ['AccountId']}
)
set_prime¶
Attributes¶
Name | Type |
---|---|
who | AccountIdLookupOf<T> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'set_prime', {
'who': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
}
)
swap_member¶
Attributes¶
Name | Type |
---|---|
remove | AccountIdLookupOf<T> |
add | AccountIdLookupOf<T> |
Python¶
call = substrate.compose_call(
'HomaCouncilMembership', 'swap_member', {
'add': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
'remove': {
'Address20': '[u8; 20]',
'Address32': '[u8; 32]',
'Id': 'AccountId',
'Index': 'u32',
'Raw': 'Bytes',
},
}
)
Events¶
Dummy¶
Attributes¶
No attributes
KeyChanged¶
Attributes¶
No attributes
MemberAdded¶
Attributes¶
No attributes
MemberRemoved¶
Attributes¶
No attributes
MembersReset¶
Attributes¶
No attributes
MembersSwapped¶
Attributes¶
No attributes
Storage functions¶
Members¶
Python¶
result = substrate.query(
'HomaCouncilMembership', 'Members', []
)
Return value¶
['AccountId']
Prime¶
Python¶
result = substrate.query(
'HomaCouncilMembership', 'Prime', []
)
Return value¶
'AccountId'