Skip to content

Tips


Calls


close_tip

Attributes

Name Type
hash T::Hash

Python

call = substrate.compose_call(
    'Tips', 'close_tip', {'hash': 'scale_info::12'}
)

report_awesome

Attributes

Name Type
reason Vec<u8>
who AccountIdLookupOf<T>

Python

call = substrate.compose_call(
    'Tips', 'report_awesome', {
    'reason': 'Bytes',
    'who': {
        'Address20': '[u8; 20]',
        'Address32': '[u8; 32]',
        'Id': 'AccountId',
        'Index': 'u32',
        'Raw': 'Bytes',
    },
}
)

retract_tip

Attributes

Name Type
hash T::Hash

Python

call = substrate.compose_call(
    'Tips', 'retract_tip', {'hash': 'scale_info::12'}
)

slash_tip

Attributes

Name Type
hash T::Hash

Python

call = substrate.compose_call(
    'Tips', 'slash_tip', {'hash': 'scale_info::12'}
)

tip

Attributes

Name Type
hash T::Hash
tip_value BalanceOf<T, I>

Python

call = substrate.compose_call(
    'Tips', 'tip', {
    'hash': 'scale_info::12',
    'tip_value': 'u128',
}
)

tip_new

Attributes

Name Type
reason Vec<u8>
who AccountIdLookupOf<T>
tip_value BalanceOf<T, I>

Python

call = substrate.compose_call(
    'Tips', 'tip_new', {
    'reason': 'Bytes',
    'tip_value': 'u128',
    'who': {
        'Address20': '[u8; 20]',
        'Address32': '[u8; 32]',
        'Id': 'AccountId',
        'Index': 'u32',
        'Raw': 'Bytes',
    },
}
)

Events


NewTip

Attributes

Name Type Composition
tip_hash T::Hash scale_info::12

TipClosed

Attributes

Name Type Composition
tip_hash T::Hash scale_info::12
who T::AccountId AccountId
payout BalanceOf<T, I> u128

TipClosing

Attributes

Name Type Composition
tip_hash T::Hash scale_info::12

TipRetracted

Attributes

Name Type Composition
tip_hash T::Hash scale_info::12

TipSlashed

Attributes

Name Type Composition
tip_hash T::Hash scale_info::12
finder T::AccountId AccountId
deposit BalanceOf<T, I> u128

Storage functions


Reasons

Python

result = substrate.query(
    'Tips', 'Reasons', ['scale_info::12']
)

Return value

'Bytes'

Tips

Python

result = substrate.query(
    'Tips', 'Tips', ['scale_info::12']
)

Return value

{
    'closes': (None, 'u32'),
    'deposit': 'u128',
    'finder': 'AccountId',
    'finders_fee': 'bool',
    'reason': 'scale_info::12',
    'tips': [('AccountId', 'u128')],
    'who': 'AccountId',
}

Constants


DataDepositPerByte

Value

600000000

Python

constant = substrate.get_constant('Tips', 'DataDepositPerByte')

MaxTipAmount

Value

0

Python

constant = substrate.get_constant('Tips', 'MaxTipAmount')

MaximumReasonLength

Value

8192

Python

constant = substrate.get_constant('Tips', 'MaximumReasonLength')

TipCountdown

Value

14400

Python

constant = substrate.get_constant('Tips', 'TipCountdown')

TipFindersFee

Value

5

Python

constant = substrate.get_constant('Tips', 'TipFindersFee')

TipReportDepositBase

Value

4000000000000

Python

constant = substrate.get_constant('Tips', 'TipReportDepositBase')

Errors


AlreadyKnown


MaxTipAmountExceeded


NotFinder


Premature


ReasonTooBig


StillOpen


UnknownTip