def apply_reject(header, payload, state): reject_payload = role_transaction_pb2.RejectAddRoleOwner() reject_payload.ParseFromString(payload.content) txn_signer_admins_address = addresser.make_role_admins_address( role_id=reject_payload.role_id, user_id=header.signer_public_key ) state_entries = state_accessor.get_state_entries( header=header, confirm=reject_payload, txn_signer_rel_address=txn_signer_admins_address, state=state, ) state_change.reject_role_action( state_entries, header, reject=reject_payload, state=state )
def apply_reject(header, payload, state): reject_payload = role_transaction_pb2.RejectAddRoleAdmin() reject_payload.ParseFromString(payload.content) txn_signer_owners_address = addresser.role.owner.address( reject_payload.role_id, header.signer_public_key) state_entries = role_validator.get_state_entries( header=header, confirm=reject_payload, txn_signer_rel_address=txn_signer_owners_address, state=state, ) state_change.reject_role_action(state_entries, header, reject=reject_payload, state=state)
def apply_reject(header, payload, state): reject = role_transaction_pb2.RejectAddRoleTask() reject.ParseFromString(payload.content) txn_signer_task_owner_address = addresser.task.owner.address( reject.task_id, header.signer_public_key) state_entries = role_validator.validate_role_task( header, reject, txn_signer_rel_address=txn_signer_task_owner_address, state=state, ) state_change.reject_role_action( state_entries=state_entries, header=header, reject=reject, state=state, rel_type="task_id", )