Skip to content

TechnicalCommitteeMembership


Calls


add_member

Attributes

Name Type
who AccountIdLookupOf<T>

Python

call = substrate.compose_call(
    'TechnicalCommitteeMembership', '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(
    'TechnicalCommitteeMembership', '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(
    'TechnicalCommitteeMembership', 'clear_prime', {}
)

remove_member

Attributes

Name Type
who AccountIdLookupOf<T>

Python

call = substrate.compose_call(
    'TechnicalCommitteeMembership', '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(
    'TechnicalCommitteeMembership', 'reset_members', {'members': ['AccountId']}
)

set_prime

Attributes

Name Type
who AccountIdLookupOf<T>

Python

call = substrate.compose_call(
    'TechnicalCommitteeMembership', '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(
    'TechnicalCommitteeMembership', '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(
    'TechnicalCommitteeMembership', 'Members', []
)

Return value

['AccountId']

Prime

Python

result = substrate.query(
    'TechnicalCommitteeMembership', 'Prime', []
)

Return value

'AccountId'

Errors


AlreadyMember


NotMember


TooManyMembers