コード例 #1
0
def notification(args: List[Any]) -> Notification:
    for x in args:
        notify(x)

    n = get_notifications()

    if len(n) > 0:
        return n[0]
    return Notification()
コード例 #2
0
def notification(args: List[Any]) -> Notification:
    for x in args:
        notify(x)

    n = get_notifications(executing_script_hash)

    if len(n) > 0:
        return n[0]
    return Notification()
コード例 #3
0
def get_notifications_is_notification() -> bool:
    notify("unit_test")

    n = get_notifications()

    if len(n) > 0:
        return is_notification(n[0])
    else:
        return False
コード例 #4
0
def with_param(args: List[Any], key: UInt160) -> List[Notification]:
    notify_args(args)
    return get_notifications(key)
コード例 #5
0
def without_param(args: List[Any]) -> List[Notification]:
    notify_args(args)
    return get_notifications()
コード例 #6
0
def without_param(args: List[Any]) -> List[Notification]:
    notify_args(args)
    return get_notifications(executing_script_hash)